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!

Hierarchy

  • SchnackInterpreter

Constructors

Properties

callScope: any = 0
currentParser: any = null
fileProvider: ((file: any) => string)

Type declaration

    • (file: any): string
    • Parameters

      • file: any

      Returns string

ifLevel: any = 0
ifLevelDone: any = []
lastFile: any = ""
lastFileScope: any = ""
storage: any = {}

Methods

Generated using TypeDoc