public bool IsScriptValid()
        {
            bool IsValid = true;

            if (Value.VariableValue == Guid.Empty)
            {
                if (ValidationTools.CheckObjectExistence(GameCore.Instance.GetVariableById(Variable)) == false)
                {
                    Variable = Guid.Empty;
                    IsValid  = false;
                }
            }
            else
            {
                if (ValidationTools.CheckObjectExistence(GameCore.Instance.GetVariableById(Variable)) == false)
                {
                    Variable = Guid.Empty;
                    IsValid  = false;
                }
                if (ValidationTools.CheckObjectExistence(GameCore.Instance.GetVariableById(Value.VariableValue)) == false)
                {
                    Value.VariableValue = Guid.Empty;
                    IsValid             = false;
                }
            }
            return(IsValid);
        }
        public bool IsScriptValid()
        {
            bool IsValid = true;

            if (WhileSubLines == null)
            {
                IsValid = false;
            }
            if (UseButton && ValidationTools.CheckObjectExistence(GameCore.Instance.GetTriggerById(Button)) == false)
            {
                Button  = Guid.Empty;
                IsValid = false;
            }
            else if (UseVariable)
            {
                if (VariableValue.VariableValue == Guid.Empty)
                {
                    Variable = Guid.Empty;
                }
                else
                {
                    if (ValidationTools.CheckObjectExistence(GameCore.Instance.GetVariableById(Variable)) == false)
                    {
                        Variable = Guid.Empty;
                        IsValid  = false;
                    }
                    if (ValidationTools.CheckObjectExistence(GameCore.Instance.GetVariableById(VariableValue.VariableValue)) == false)
                    {
                        VariableValue.VariableValue = Guid.Empty;
                        IsValid = false;
                    }
                }
            }
            return(IsValid);
        }
        public bool IsScriptValid()
        {
            bool IsValid = true;

            if (UseButton && ValidationTools.CheckObjectExistence(GameCore.Instance.GetTriggerById(Button)) == false)
            {
                Button  = Guid.Empty;
                IsValid = false;
            }
            else if (UseVariable)
            {
                // Source Variable to Compare
                if (ValidationTools.CheckObjectExistence(GameCore.Instance.GetVariableById(Variable)) == false)
                {
                    Variable = Guid.Empty;
                    IsValid  = false;
                }
                // If Destination Comparison is not an Int but an other Variable
                if (VariableValue.VariableValue != Guid.Empty)
                {
                    // Check of Destination Variable to Compare
                    if (ValidationTools.CheckObjectExistence(GameCore.Instance.GetVariableById(VariableValue.VariableValue)) == false)
                    {
                        VariableValue.VariableValue = Guid.Empty;
                        IsValid = false;
                    }
                }
            }
            if (UsePlayer && ValidationTools.CheckObjectExistence(GameCore.Instance.GetCharacterById(Player)) == false)
            {
                Player  = Guid.Empty;
                IsValid = false;
            }
            return(IsValid);
        }
 public bool IsScriptValid()
 {
     if (ValidationTools.CheckObjectExistence(Coords) == false)
     {
         return(false);
     }
     return(true);
 }
Example #5
0
 public bool IsScriptValid()
 {
     if (ValidationTools.CheckObjectExistence(GameCore.Instance.GetActionById(Action)) == false)
     {
         Action = Guid.Empty;
         return(false);
     }
     return(true);
 }
        public bool IsScriptValid()
        {
            bool IsValid = true;

            if (ValidationTools.CheckObjectExistence(GameCore.Instance.GetStageAnimation(Animation)) == false)
            {
                Animation = Guid.Empty;
                IsValid   = false;
            }
            return(IsValid);
        }
        public bool IsScriptValid()
        {
            bool IsValid = true;

            if (ValidationTools.CheckObjectExistence(GameCore.Instance.GetStageCharacter(Character)) == false)
            {
                Character = Guid.Empty;
                IsValid   = false;
            }
            return(IsValid);
        }
        public bool IsScriptValid()
        {
            bool IsValid = true;

            if (ValidationTools.CheckObjectExistence(Coords) == false || ValidationTools.CheckMapExistence(Coords) == false)
            {
                Coords.Map = Guid.Empty;
                IsValid    = false;
            }
            return(IsValid);
        }
Example #9
0
        public bool IsScriptValid()
        {
            bool IsValid = true;

            if (ValidationTools.CheckObjectExistence(GameCore.Instance.GetTriggerById(Button)) == false)
            {
                Button  = Guid.Empty;
                IsValid = false;
            }
            return(IsValid);
        }
Example #10
0
        public bool IsScriptValid()
        {
            bool IsValid = true;

            if (Character != new Guid(GlobalConstants.CURRENT_PLAYER_ID) && ValidationTools.CheckObjectExistence(GameCore.Instance.GetPlayableCharacterById(Character)) == false)
            {
                Character = Guid.Empty;
                IsValid   = false;
            }
            return(IsValid);
        }
        public bool IsScriptValid()
        {
            bool IsValid = true;

            if (ValidationTools.CheckObjectExistence(GameCore.Instance.GetGlobalEventById(GlobalEvent)) == false)
            {
                GlobalEvent = Guid.Empty;
                IsValid     = false;
            }
            return(IsValid);
        }
        public bool IsScriptValid()
        {
            bool IsValid = true;

            if (ValidationTools.CheckObjectExistence(GameCore.Instance.GetPlayableCharacterById(Character)) == false)
            {
                Character = Guid.Empty;
                IsValid   = false;
            }
            else if (UseOldCoords == false && (ValidationTools.CheckObjectExistence(Coords) == false || ValidationTools.CheckMapExistence(Coords) == false))
            {
                Coords.Map = Guid.Empty;
                IsValid    = false;
            }
            return(IsValid);
        }
Example #13
0
        public bool IsScriptValid()
        {
            VO_PlayableCharacter playableCharacter = GameCore.Instance.GetPlayableCharacterById(Character);

            bool IsValid = true;

            if (ValidationTools.CheckObjectExistence(playableCharacter) == false)
            {
                Character = Guid.Empty;
                IsValid   = false;
            }
            if (ValidationTools.CheckObjectExistence(GameCore.Instance.GetCharAnimationById(playableCharacter.CharacterId, Animation)) == false)
            {
                Animation = Guid.Empty;
                IsValid   = false;
            }
            return(IsValid);
        }