Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
Tutorial explaining how to create verbs in AdventureJS. tutorial, create verbs

Advanced Verb Use:Create Verbs

  • createVerb() lets an author create a new Verb from scratch.
  • Examples

    
      

    // createVerb()

    MyGame.createVerb({ name: "blab_about", prettyname: "blab about", verb_prep_noun: [ "blab about" ], // blab about thing verb_noun_prep_noun: [ "blab about" ], // blab person about thing doTry: function( input ) { [insert logic here] return true; }, doSuccess: function( input ) { [insert logic here] return true; }, });