Skip to reading
Text & Sierra-Style Adventures

7. Give the parser a useful vocabulary

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

Open the Verb Designer. Create or review the records below. The built-in parser can match a verb’s ID, display name and synonyms. The finished controller also has its own small vocabulary table; we will keep the two lists in step.

Figure 3. A verb’s Synonyms field gives players more than one sensible way to ask for the same action.

Source table from 7. Give the parser a useful vocabulary, page 10
Verb IDDisplay nameSuggested synonyms
lookLookexamine, inspect
takeTakeget, pick up
useUseapply
talkTalkspeak
readRead
openOpen
walkWalkgo

Use short display names when they are also parser phrases. A display name such as “Look at” is fine, but remember that it is another phrase the native matcher can recognize.

Synonyms help with words, not with every possible sentence. Adding GET to Take does not teach the engine grammar for “could you get that thing over there?” The game still needs rules for the commands it accepts.

Page 10 of 68Permalink
Go to page