Skip to content
KCKingdoms Connected Scripting APIScripting guides and API
Data shapeServer APIGenerated

DialogueOption

Defined in: server/api.d.ts:2643

One row of a page.

optional enabled?: boolean

Defined in: server/api.d.ts:2657

Draws the row greyed and unpickable when false. A rendering hint only – the server re-checks the choice when it arrives, so nothing a row costs may rely on this.


id: string

Defined in: server/api.d.ts:2647

What comes back on dialogueChoice when this row is picked. An id, never an index, so a handler stays correct when the page is rebuilt with different rows.


text: string

Defined in: server/api.d.ts:2652

The line the player reads. Server-authored text reaches the game’s own list as written; it is not a localization key.