Skip to content

1681-engine / index / DialogueChoice

Interface: DialogueChoice ​

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

One answer the player may pick.

Properties ​

do? ​

ts
optional do?: DialogueCommand[];

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


goto? ​

ts
optional goto?: string;

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

Where it leads (absent: the dialogue ends).


if? ​

ts
optional if?: string;

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

Offered only when this holds.


key? ​

ts
optional key?: string;

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


once? ​

ts
optional once?: boolean;

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

Offered only until picked once.


set? ​

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

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

Assignments run when it is picked: name → expression.


showLocked? ​

ts
optional showLocked?: boolean;

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

When if fails, show it greyed out instead of leaving it out (the player sees what they lack).


text ​

ts
text: string;

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

Released under the MIT License.