Ejemplo n.º 1
0
 public ScriptCheckVisualNovelVariable()
     : base(160, 50, "Check Visual Novel variable", new string[] { "Check variable" }, new string[] { "Condition is true", "Condition is false" })
 {
     _TargetID      = 0;
     _LogicOperator = Operators.LogicOperators.Equal;
     _VariableName  = "";
     _VariableValue = 0;
 }
Ejemplo n.º 2
0
        public override void CopyMembers(BaseSkillRequirement Copy)
        {
            HPLeftRequirement NewRequirement = (HPLeftRequirement)Copy;

            _LogicOperator = NewRequirement._LogicOperator;
            _NumberType    = NewRequirement._NumberType;
            _HPLeft        = NewRequirement._HPLeft;
        }
Ejemplo n.º 3
0
 protected override void Load(BinaryReader BR)
 {
     _LogicOperator = (Operators.LogicOperators)BR.ReadByte();
     _NumberType    = (Operators.NumberTypes)BR.ReadByte();
     _HPLeft        = BR.ReadString();
 }
Ejemplo n.º 4
0
            public bool CompareValue(Operators.LogicOperators Operator, double Value1, double Value2)
            {
                switch (Operator)
                {
                case Operators.LogicOperators.Equal:
                    if (Value1 == Value2)
                    {
                        return(true);
                    }
                    else
                    {
                        return(false);
                    }

                case Operators.LogicOperators.Greater:
                    if (Value1 > Value2)
                    {
                        return(true);
                    }
                    else
                    {
                        return(false);
                    }

                case Operators.LogicOperators.GreaterOrEqual:
                    if (Value1 >= Value2)
                    {
                        return(true);
                    }
                    else
                    {
                        return(false);
                    }

                case Operators.LogicOperators.Lower:
                    if (Value1 < Value2)
                    {
                        return(true);
                    }
                    else
                    {
                        return(false);
                    }

                case Operators.LogicOperators.LowerOrEqual:
                    if (Value1 <= Value2)
                    {
                        return(true);
                    }
                    else
                    {
                        return(false);
                    }

                case Operators.LogicOperators.NotEqual:
                    if (Value1 != Value2)
                    {
                        return(true);
                    }
                    else
                    {
                        return(false);
                    }
                }

                return(false);
            }
Ejemplo n.º 5
0
 protected override void Load(BinaryReader BR)
 {
     _LogicOperator = (Operators.LogicOperators)BR.ReadByte();
     _WillNeeded    = BR.ReadString();
 }
Ejemplo n.º 6
0
 public CurrentTurnCondition(BattleMap Map)
     : base(Map, 140, 70, "Current Turn", new string[] { "Check Condition" }, new string[] { "Condition is true", "Condition is false" })
 {
     _Turn          = 0;
     _LogicOperator = Operators.LogicOperators.Equal;
 }
 protected override void Load(BinaryReader BR)
 {
     _StatusType    = (StatusTypes)BR.ReadByte();
     _EffectValue   = BR.ReadString();
     _LogicOperator = (Operators.LogicOperators)BR.ReadByte();
 }