Skip to reading
Replace the Built-in Screens

Connect the HUD to real gameplay

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 illustrations

Figure 7. Toggle Journal follows the current player’s journal assignment.

1. Select the Walk Button. In Events, set its Click behavior to Set Verb and select the walk verb.

2. Repeat for Look, Use and Talk, using the matching verb IDs.

3. Set the Inventory opener to Toggle Inventory. Set the Journal opener to Toggle Journal.

4. Give the character switch Button the Switch Character behavior and choose the other character.

5. For Menu, call the open_pause helper from Chapter 10. It uses the system Pause Menu route.

6. Test a real room object. Its Look or Use result still belongs to that object’s interactions, not to the HUD Button.

A verb Button chooses the action. It does not create the action’s result on every object. Give the door an Open/Use result, the sign a Look result, and the character a Talk result as appropriate.

Hard-coding Show GUI → tester_inventory on a shared HUD will always open Eli’s screen. Toggle Inventory is the useful choice when the active player can change.

Page 13 of 88Permalink
Go to page