/// /// class ActionWait extends Action { public requiresTurn = true; public requiresNoun = false; public requiresVisibility = false; public static check : Rulebook = new Rulebook("Check Waiting"); public static carry : Rulebook = new Rulebook("Carry out Waiting"); public getCommandText () { return "wait"; } } ActionWait.carry.addRule(new Rule({ name : "Print waiting message", code : runner => { if (runner.noun.actor == WorldState.player) { runner.noun.say.add("You wait."); } } })); Elements.HyperlinkHandler.CommonActionsRulebook.addRule(new Rule({ name : "Add Wait Command Rule", firstPriority : Rule.PRIORITY_HIGHEST, priority : Rule.PRIORITY_MEDIUM, code : (rulebook : RulebookRunner) => { Elements.HyperlinkHandler.addCommonAction("Wait", new ActionWait(WorldState.player)); } }));