16. Set up the story variables
Open the Variable Designer and add the variables below. Use the IDs exactly as printed if you intend to copy the controller. A variable is the game’s memory: it records what happened, rather than making the game guess from what is currently visible.
| ID | Type | Starting value / purpose |
|---|---|---|
| ta_text_mode | Boolean | true: start with the text-only presentation. |
| ta_score | Number | 0 |
| ta_key_room | String | lab |
| ta_fuse_room | String | cabin |
| ta_unlocked | Boolean | false |
| ta_door_open | Boolean | false |
| ta_fuse_fitted | Boolean | false |
| ta_found_key | Boolean | false: guards the first key point. |
| ta_found_fuse | Boolean | false: guards the first fuse point. |
| ta_signal_sent | Boolean | false: guards the ending points. |
| ta_reply | String | Empty: current graphical reply. |
| ta_last | String | Empty: last submitted command. |
| ta_lines | Array | Opening text and all later transcript entries. |
The key and fuse location strings use ordinary words: lab, cabin, carried and, for the installed fuse, fitted. These strings describe puzzle state. They are not inventory IDs.
Use real Boolean values for true and false. A string containing the word “false” is text, not a false checkbox value.
