Skip to reading
Eight Adventure Interface Workshops

Use a key on a real object

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

1. Create an inventory definition called Brass key, ID brass_key.

2. Create or select your scene’s locked desk. Give it a clear object ID and enable its hotspot.

3. Add an inventory interaction rule for using brass_key on that desk.

4. Make the rule set a desk_unlocked Boolean variable to true. Add a short message or an opening animation if you have one.

5. If the key should disappear after use, add Remove Inventory after the successful result. Leave it in the inventory if the story expects it to be reusable.

6. Test an unrelated item on the desk. It should give reasonable feedback without unlocking anything.

An item-on-item recipe works similarly: define the source item, the target inventory item and the resulting actions. If the recipe makes a new object, remove the consumed ingredients and add the resulting inventory definition.

When using raw rules, a scene target is written as entity: followed by its object ID; an inventory target is inventory: followed by its item ID. Prefer the inspector’s target selectors when they are available.

Do not use the player’s visual proximity to guess whether an item worked. Test the saved variable, resulting object state and inventory contents.

Page 14 of 119Permalink
Go to page