Skip to reading
The Text Parser

9. Make a typed verb change the game

Edition 0.86.3.4

Teach your adventure verbs and synonyms, add command input and connect typed instructions to real game actions.

Download PDFView PDF page
On this page

the sentence in Command Preview.

Designer preview and gameplay are different#

GUI Designer's preview is for checking presentation and control behaviour. It does not run the game events that make a parser command work. Use the actual running game to check submission, actions, inventory and room state.

The command label is optional#

A label containing {command} can show the current interaction command. {verb} and {target} are also available for a label built around those parts. They use braces, as shown here.

These labels describe the current command and target selection. They are not a transcript of everything the player typed, and they are not the place where you enter parser synonyms. Keep an input box for typing and use messages, dialogue or your own GUI for responses.

Try submitting two commands in a row. Also click elsewhere, then click back into the box. Keeping focus after submission helps keyboard users; it does not guarantee the box keeps focus after every other GUI operation.

Now give Wind a result that does more than display text. You need the Wind verb from Chapter 4, the clock target and a Boolean variable called clock_wound.

1. In Variable Designer, add a Boolean variable with ID clock_wound and default value False.

2. Return to Scene Designer and select Workshop Clock.

3. Open Verb Actions and find Wind Verb.

4. Make the first action Set Variable. Select clock_wound and set its value to True.

5. Add the next action as Show Message: You wind the clock. A steady tick returns.

6. Apply the object changes, save and start a fresh preview.

7. Type wind up the clock and press Enter.

Page 18 of 41Permalink
Go to page