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; }
public override void CopyMembers(BaseSkillRequirement Copy) { HPLeftRequirement NewRequirement = (HPLeftRequirement)Copy; _LogicOperator = NewRequirement._LogicOperator; _NumberType = NewRequirement._NumberType; _HPLeft = NewRequirement._HPLeft; }
protected override void Load(BinaryReader BR) { _LogicOperator = (Operators.LogicOperators)BR.ReadByte(); _NumberType = (Operators.NumberTypes)BR.ReadByte(); _HPLeft = BR.ReadString(); }
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); }
protected override void Load(BinaryReader BR) { _LogicOperator = (Operators.LogicOperators)BR.ReadByte(); _WillNeeded = BR.ReadString(); }
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(); }