SchnackInterpreter allows you to execute schnack-files which is a text format meant to control NPC dialogs.
[Player]Hello!@if count >= 1 [SomeNpc] Hallo Again!@else [SomeNpc] Hallo nice to meet you!@endif@set count ++
⚠️ experimental
Converted from C++ to Javascript to Typescript. No types, no testing => needs work!
retruns true if the condition is true
checks if the given condition has a valid var name
checks if the given var name is valid
executes script-step
returns a vector with all variables that are flagged as persistant
builds a var name considering the current script context.
Parses the script-file. The results will be handled with the listener. You should
NOTE: You can only parse one script at a time. It'll assert if there is already a script
executes a script from a string
call this after a selection
removes all variables that have map-scope.
removes all variables that have session-scope.
boolean true on success
SchnackVar the created object holding the value
Generated using TypeDoc
SchnackInterpreter allows you to execute schnack-files which is a text format meant to control NPC dialogs.
⚠️ experimental
Converted from C++ to Javascript to Typescript. No types, no testing => needs work!