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

How to:Set Descriptions

this.descriptions = { look: "", brief: "", verbose: "", careful: "", closed: "", open: "", taste: "", touch: "", smell:"", sound:"", through:"", in:"", exits:"", for_exits_list:"", }
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. ", }, },
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.