Skip to reading
The Text Parser

19. Find the cause when a command fails

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

Test the same puzzle route after changing the game's language. Check the input, the response, fonts and the GUI layout. Device keyboards and Enter behaviour also need a check on the actual devices you intend to support.

Work from the smallest test outward. First check the cleaned sentence, then the matched verb and target, then the target's response, and finally the current game's state. Changing everything at once makes a vocabulary problem look like a scripting problem.

Source table from 19. Find the cause when a command fails, page 38
What you seeCheck this first
No verb matchedVerb ID, display name, synonyms and Enabled. Put action words on the verb.
No target matchedThe placed target's name and synonyms; check the intended room and record.
The wrong target matchedShared aliases and longer phrases. Give competing objects distinct nouns.
Preview works; the game differsApply, save and restart. Preview can see records outside the current runtime room.
Text disappears but nothing runsThe parser Enabled checkbox and the text box's Run Text Parser option.
A custom phrase does nothing usefulAssigned script, script errors and the handler's own conditions.
Help works but help clock does notCustom commands require an exact cleaned phrase.
Use … on … failsGlobal verb preposition, source opt-in, complete noun phrases and allowed target.
Inventory Look selects an itemInteraction mode, especially Verb Direct or its double-click variant.
A repaired clock repeats the repairAdd an If Variable check to the response.
Enter adds another lineMultiline is enabled, or the intended single-line input is not being used.
Another GUI receives the inputGUI visibility, enabled state, focus and overlays covering the field.
Page 38 of 41Permalink
Go to page