Custom matching is exact after cleanup
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.
| Authored phrase | Player input | Custom match? |
|---|---|---|
| help | HELP! | Yes |
| help | please help | Yes, when please is ignored |
| help | help clock | No; an extra word remains |
| check clock | check the clock | Yes, when the is ignored |
| check clock | clock check | No; the order differs |
