Adventure.js Docs Downloads
Score: 0 Moves: 0
Tutorial explaining how to customize output in Adventurejs. tutorial, output

How to:Customize Output

Customizing Output body text.

  • verb_hooks
  • event_hooks
  • verb subscription with_success
  • verb subscription with_success_first_time
  • verb subscription with_failure
  • verb subscription with_failure_first_time
  • override_verb_success_msg
  • KEEP?
  • override_verb_failure_msg - simple but inflexible
  • REPLACE WITH with_failure
    MyGame.patchVerb({
      name: "fly",
      override_verb_failure_msg: "You can't. ",
      override_verb_success_msg: "You fly! ",
    }),
    
    Documentation generated by JSDoc 3.6.11 on Mon Nov 20 2023 18:04:50 GMT-0800 (Pacific Standard Time)
    Found a problem or error in the docs? Report it to docs@adventurejs.com.