Skip to reading
The Text Parser

Custom matching is exact after cleanup

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

Figure 17. Custom rows pair a complete phrase with a script. A row with None selected still needs a handler.

The selector can offer GDScript, PCA Script, Lua, BASIC and Visual Script records from the project. Choose the actual record you made; the label includes its name and ID, with a language suffix where shown. Give scripts different IDs across the language collections so the selector and runtime do not have to resolve duplicate IDs.

The submitted sentence and the authored custom phrase are both cleaned before comparison. With please ignored, please help! can match help. The words that remain must be the same, in the same order.

Source table from Custom matching is exact after cleanup, page 21
Authored phrasePlayer inputCustom match?
helpHELP!Yes
helpplease helpYes, when please is ignored
helphelp clockNo; an extra word remains
check clockcheck the clockYes, when the is ignored
check clockclock checkNo; the order differs
Page 21 of 41Permalink
Go to page