Skip to reading
Text & Sierra-Style Adventures

16. Set up the story variables

Edition 0.86.3.4

Build a complete text or graphical parser adventure with typed commands, inventory puzzles and press-to-walk controls.

Download PDFView PDF page

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.

Source table from 16. Set up the story variables, page 19
IDTypeStarting value / purpose
ta_text_modeBooleantrue: start with the text-only presentation.
ta_scoreNumber0
ta_key_roomStringlab
ta_fuse_roomStringcabin
ta_unlockedBooleanfalse
ta_door_openBooleanfalse
ta_fuse_fittedBooleanfalse
ta_found_keyBooleanfalse: guards the first key point.
ta_found_fuseBooleanfalse: guards the first fuse point.
ta_signal_sentBooleanfalse: guards the ending points.
ta_replyStringEmpty: current graphical reply.
ta_lastStringEmpty: last submitted command.
ta_linesArrayOpening 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.

Page 19 of 68Permalink
Go to page