Skip to content

1681-engine / index / validateDialogue

Function: validateDialogue() ​

ts
function validateDialogue(script, options?): DialogueIssue[];

Defined in: src/dialogue/validateDialogue.ts:24

Checks a script without running it, for a test or an editor: every goto and next names a node, every condition, assignment and {…} parses, commands and functions are known (when the lists are given), and every node can be reached from the start.

Parameters ​

ParameterType
scriptDialogueScript
optionsDialogueValidateOptions

Returns ​

DialogueIssue[]

Released under the MIT License.