Skip to reading
The Text Parser

15. Include inventory commands

Edition 0.86.3.4

Teach your adventure verbs and synonyms, add command input and connect typed instructions to real game actions.

Download PDFView illustrations

An inventory definition has its own ID, name, synonyms, description and verb responses. A physical key lying in the room is a scene object; a key carried in the bag is an inventory item. They can use related words, but they are different records.

1. Open Inventory Designer and select or create Brass key, with ID brass_key.

2. Give it synonyms such as key, winding key.

3. Add a Description, such as A small brass winding key.

4. Add a Look response in Verb Actions if you want a particular action sequence.

5. Give the player the item through the game's normal starting-inventory or Add Inventory setup.

6. Save, run the game and try look brass key.

Figure 27. The carried key's Look response is reached by typed input in the example's Verb Single Click mode.

Use the carried key on the clock#

On the inventory definition, enable the Use preposition behaviour and add a second-target response for Workshop Clock, just as you did for the lantern. The carried key is now the source. The clock remains a scene target.

Test use the brass key on the clock. In this example it answers The brass key fits the clock. You turn it carefully.

Page 32 of 41Permalink
Go to page