Teach it the words players will try
TUTORIAL 04 • TEXT PARSER DESIGNER
A parser breaks a sentence into an action and a target. “Please look at the brass tag” boils down to Look plus Brass tag. That calls the very same Look action you attached on page 9.
1 Open Adventure Database › Text Parser. Check Enable Text Parser. Under Words to Ignore, keep please, at, the and to, one per line. Click Apply Parser Settings. Keep look, use and open as verbs. These tell the game what to do.
2 In Scene Designer give the Brass tag object the synonym tag and the Yard switch the synonyms switch and lamp switch. Keep the door names from page 7. Apply the objects. Back in Text Parser Designer enter please look at the brass tag under Command Preview and click Parse Preview.
The preview finds verb Look and target Brass tag (object). In the running game the target also has to be in the current room.
| Where Bea is | Click the text box, type, press Enter | What should happen |
|---|---|---|
| Lobby | talk to Gus | Gus offers four questions. |
| Sorting Room | open service door | Locked hint or trip outside. |
| Service Yard | please look at the brass tag | Bea identifies the tapping. |
| Service Yard | use lamp switch | The pad changes brightness. |
| Service Yard | open staff door | Bea returns to the washer. |
After Enter • Bea identifies the tapping.
In play • type the sentence into the box.
What about the bag? Leave it visible. The Part 3 recipe still works by dragging the sock onto the tokens. To use the finished weight, click its inventory slot and then the washer window. You can play this stretch with the command line and still handle the actual items with the mouse.
PCA 3D Adventure Studio / 17
