private static bool Chance(Interpreter interpreter, Source source, Stringe tagname, TagArg[] args) { int a; if (!Int32.TryParse(args[0].GetString(), out a)) { throw new ProcessusException(source, tagname, "Invalid chance number."); } interpreter.SetChance(a); return false; }