Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
Tutorial explaining how to set asset descriptions in Adventurejs. tutorial, descriptions

Descriptions:Indirect Descriptions

To be written...

any preposition
indirect descriptions:
- preposition + asset name
- preposition + preposition + asset name
  "with candle":
  {
    look: "bar" <= look at window with candle
    through: "foo" <= look through window with candle
  }

descriptions: {
  // string
  look: "It's a window. Beyond it is a playground. ",
  // array
  look: ["Nothing. ","Bah. ","Foo. "],
  // function
  look: function(n){ return "I see stuff. "; },
  // object
  look: {
    default: "Foo. ",
    "with flashlight": "The flashlight shines off the thing. ",
    "with candle": "The candle's light flickers over the thing. ",
  },
},