Skip to reading
The Text Parser

16. Talk to characters and refer to regions

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 two-object inventory route checks that the source item is actually carried and that the active character is allowed to carry it. Test with and without the item. A vocabulary match alone is not an inventory possession check.

Avoid an inventory-name collision#

If a visible room object and an inventory definition both answer to key, a short one-target sentence can select a different record than you expect. Use distinct phrases while authoring, such as key on bench for the scene object and brass key for the carried item, then test the natural short wording deliberately.

Do not build puzzle conditions around the fact that Command Preview recognised an inventory name. Definitions can be recognised even when no copy is carried. Use Has Inventory or the appropriate inventory condition in the action or script that needs it.

Check your interaction mode#

Verb Direct inventory handling is designed around selecting an item or target and choosing the action. It can therefore behave differently from a direct Look response in Verb Single Click mode. If a typed inventory command selects the item instead of showing the response you expected, check the project's interaction mode before rewriting the item's synonyms.

The screenshots and direct inventory Look test here use Verb Single Click. Repeat your final tests in whichever mode you ship, including double-click variants if you enable them.

A character can be a target in the same way as the clock. Its record ID, name, character display name and synonyms provide possible matching words in the runtime.

Give Elias a Talk response#

1. Select Elias in the scene or open the appropriate Character Designer record.

2. Add a simple synonym such as clockmaker alongside elias.

3. In Verb Actions, give Talk a response.

4. For a quick test, use Show Message with a short line. For a conversation, use Start Dialogue and choose an existing dialogue.

5. Apply, save and test talk to elias and talk to the clockmaker.

Page 33 of 41Permalink
Go to page