Skip to content

1681-engine / index / DialogueNode

Interface: DialogueNode ​

Defined in: src/dialogue/script.ts:58

Properties ​

choices? ​

ts
optional choices?: DialogueChoice[];

Defined in: src/dialogue/script.ts:60


do? ​

ts
optional do?: DialogueCommand[];

Defined in: src/dialogue/script.ts:66

Commands run on entering the node, after set.


lines? ​

ts
optional lines?: (string | DialogueLine)[];

Defined in: src/dialogue/script.ts:59


next? ​

ts
optional next?: string | DialogueBranch[];

Defined in: src/dialogue/script.ts:62

Where to go after the lines when there are no choices: a node, or branches. Absent: the dialogue ends.


set? ​

ts
optional set?: Record<string, string>;

Defined in: src/dialogue/script.ts:64

Assignments run on entering the node, before its lines.

Released under the MIT License.