Skip to reading
Text & Sierra-Style Adventures

21. Make the transcript readable and scrollable

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 illustrations

Select story_transcript. In Type Settings, enable Multiline. Leave it as a large reader rather than trying to fit the whole adventure into a Label. A multiline Text Box provides wrapping, selection and scrolling.

Figure 13. Use a multiline Text Box for the transcript. The controller makes it read-only while the game runs.

The controller joins ta_lines with blank lines between entries. It updates the reader only when the text changes and scrolls to the latest entry. The player can scroll back to inspect earlier replies.

The reader is made read-only by reader.editable = false. The script also sets its read-only text color, because a theme can otherwise dim it as if it were disabled. Read-only and unreadable should not be the same setting.

Keep all important information in text, even in the graphical version. For example, the note should say what the player needs rather than relying on the tiny color of a fuse to explain the puzzle.

The script stores the transcript in ta_lines. It does not save whatever a player happens to type into the reader, and the reader is not an editable notebook.

Page 24 of 68Permalink
Go to page