Skip to reading
The Text Parser

17. Look around and walk by command

Edition 0.86.3.4

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

Download PDFView illustrations
On this page

Two built-in verbs have special parser handling: Look without an object can describe the room, and Walk can choose a destination.

Describe the room with Look#

In the scene's General properties, write a Room Description. Save and run the scene. Type look without a noun. The runtime uses the room description; if there is none, it can fall back to a basic room-name message.

Figure 29. Bare look reads the room description rather than the clock's Look response.

The example description mentions a stopped clock. If you want the description to change after the repair, make that change part of your game logic or provide a state-aware custom command. Static text does not rewrite itself when a Boolean changes.

Walk to an object#

Walk clock uses the matched scene entity's world position as a destination. It requests movement; it does not mean run the clock's ordinary Walk Verb action. The player still needs a working navigation setup.

For a predictable test, begin with a clear floor and a nearby object. A model origin inside a wall or outside the navigation area is a poor walking destination. Object placement, colliders and the

Page 35 of 41Permalink
Go to page