Skip to reading
At the Clockmaker’s Bench: Illustrated Parser & Cursor Workshop

Wire Enter to the text parser

Edition 0.86.4.9

The 19-page 0.86.4.9 revision supersedes the supplied 18-page 0.86.4.8 Illustrated Workshop. The original cover and early lessons retain their 0.86.4.8 labels. Opening and validation instructions are revised, and page 19 adds an export check. The earlier PDF is retained for reference and excluded from current guide/page totals.

Download PDFView illustrations

A text box can accept a perfectly good sentence and still do nothing when the player presses Enter. The connection lives on the GUI element.

In Adventure Database → GUIs, open Command entry (ID parser_entry). In GUI Designer select the text box named entry. Select Type Settings in its Inspector and scroll to the Text Box section. Widen the Inspector if a label runs off the edge.

07 The workshop’s text box. Multiline is off and the next three options are on.

Source table from Wire Enter to the text parser, page 6
OptionWhat the player gets
Run Text Parser Command When Enter Is PressedEnter submits the words to the parser. Turn this on for the command box.
Clear Single-Line Text When Enter Is PressedA fresh field after submission. Leave this off if you want the previous entry to remain.
Return Focus To Text Box After EnterThe player can type the next command without clicking the field again.

For your own GUI, make it visible at game start. In Text Parser → Parser, check Enable Text Parser. In Grammar, choose advanced for the rules in this guide. Use Apply Parser Settings, then Save Project.

History and transcript serve different jobs. Remember local command history lets Up and Down recall what the player typed. Show a scrolling transcript of game responses keeps up to 50 displayed responses. Its Clear button empties the response panel.

Page 6 of 19Permalink
Go to page