Skip to reading
Panels, Tabs & List Boxes

21. Change manual rows with actions

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

List actions are available through GUI events, action lists and visual scripting. They use the same GUI, element and row IDs in each place. For a first test, give the Clues page an Add clue Button.

1. Select Add clue and open Events. Choose the Click behavior List Box: Add Item.

2. Choose Clues Page as GUI and Clue List as List Box.

3. Use New Item ID clock_hand and Item Text A loose clock hand.

4. Choose wheel_icon as Optional Icon, leave Disabled false and use Insert Index -1 to append at the end.

Figure 32. The single-action editor for Add Item. Dropdowns identify the target GUI and List Box.

Run the game and press Add clue. Scroll to the end if needed to find the new row. A second press can create a suffixed ID such as clock_hand_2. For a one-time discovery, guard the award with a story variable instead of allowing unlimited additions.

0.86.3.4 has a validation wrinkle with literal list-row IDs in these action records. Read Chapter 24 before using this route in a distributable project.

Page 37 of 50Permalink
Go to page