Skip to reading
Text & Sierra-Style Adventures

12. Make a built-in parser command field

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

Create a temporary GUI called Built-in Parser Test. Add a single-line Text Box, make the GUI visible while testing and select the Text Box in the GUI Designer.

Figure 6. These Enter options connect a single-line Text Box to PCA’s native parser.

Source table from 12. Make a built-in parser command field, page 15
Type Settings optionNative prototype value
MultilineOff
Clear Single-Line Text When Enter Is PressedOn
Run Text Parser Command When Enter Is PressedOn
Return Focus To Text Box After EnterOn while testing repeated commands

In Play, click the field, type a command and press Enter. For ordinary object commands, PCA uses the same authored verb responses that your clickable interface can use. A Look response does not need a second copy merely because the player typed it.

The temporary native field is not one of the finished controller fields. Hide or remove the test GUI after this stage. Leaving two visible command receivers can send input to the wrong field or make a shortcut open the test GUI.

Page 15 of 68Permalink
Go to page