Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
Tutorial explaining how to enable / disable Verbs in AdventureJS. tutorial, verbs, enable, disable

Advanced Verb Use:Enable / Disable Verbs

disableVerbs() lets an author delete specified Verbs from their game's Dictionary. Useful when you don't want to support certain Verbs.

MyGame.disableVerbs( [ "lick", "eat" ] );

enableVerbs() lets an author re-enable Verbs that have been disabled.

MyGame.enableVerbs( [ "lick", "eat" ] );

disableAllVerbsBut() lets an author disable all but specified Verbs. Useful for creating a game with limited language.

MyGame.disableAllVerbsBut( [ "look", "examine" ] );

Examples