16. Make a parser command field
A parser field submits a command to the adventure's vocabulary and actions. It is different from a password field that checks one word in its own script.
1. Enable and configure Text Parser Designer for the project.
2. Add a single-line Text Box to a visible HUD. The example ID is hud_parser on workshop_hud.
3. Set a short Placeholder, such as Type a command, then press Enter.
4. Enable Run Text Parser Command When Enter Is Pressed.
5. Enable Clear Single-Line Text When Enter Is Pressed and Return Focus To Text Box After Enter if you want repeated command entry.
6. Leave Password / Cipher Mode off so the command remains readable.
Figure 28. These three Enter settings submit the sentence, clear the field and return typing focus.
Test an ordinary command that your room already supports, such as look at the clock. For the pictured status test, Text Parser Designer has a custom command status pointing to a script that displays the current visitor and score.
The parser uses the commands, verbs and target names you author. Adding a text box does not create that vocabulary. A GUI {command} label is the current verb/hover display, not a transcript of the last submitted parser sentence.
