Skip to main content

View as Markdown · AI documentation index

Type Alias: ChoiceOption

ChoiceOption = object

Defined in: scripts/types.ts:116

One selectable reply.

Properties​

content​

content: TextInput

Defined in: scripts/types.ts:118

Label shown to the player, and logged once chosen.


next?​

optional next: Script | () => void

Defined in: scripts/types.ts:126

What happens after the reply is logged.

A script is played in the same chat, a function is called, and omitting it simply continues the current script.