Example #1
0
        public override object Evaluate(List <string> args, ExpressionEvaluator evaluator, Character player, Creature target = null, CastedSpell spell = null)
        {
            AddReminderEventArgs ea = new AddReminderEventArgs(Expressions.GetStr(args[0], player, target, spell), Expressions.GetStr(args[1], player, target, spell));

            AddReminder(player, ea);
            return(null);
        }
        public override object Evaluate(List <string> args, ExpressionEvaluator evaluator, Creature player, Target target = null, CastedSpell spell = null, DiceStoppedRollingData dice = null)
        {
            ExpectingArguments(args, 2);
            string reminder         = Expressions.GetStr(args[0], player, target, spell);
            string fromNowDuration  = Expressions.GetStr(args[1], player, target, spell);
            AddReminderEventArgs ea = new AddReminderEventArgs(reminder, fromNowDuration);

            AddReminder(player, ea);
            return(null);
        }
 public static void AddReminder(object sender, AddReminderEventArgs ea)
 {
     AddReminderRequest?.Invoke(sender, ea);
 }