Choice
7 nodes
On this page 7
Make Choice
FunctionMakes a choice.
Signature
ChoiceOption -> Choice
text: Text
body: Sequence
condition: ConditionChoiceOption ChoiceOption(
string text,
Sequence body,
Condition condition)Parameters
| name | type | default | description |
|---|---|---|---|
| text | Text | — | What the button says. |
| body | Sequence | — | What happens when it is chosen: a sequence. |
| condition | Condition | — | Shown only when this holds, a condition from the Conditions nodes; empty always shows it. |
Returns
| result | Choice |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Choice
- Package
- Novella Visual Novels
Get Body
FunctionThis node carries no documentation.
Signature
Body(Choice: Choice) -> Sequence
Sequence Body(ChoiceOption Choice)
Parameters
| name | type | default | description |
|---|---|---|---|
| Choice | Choice | — |
Returns
| result | Sequence |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Choice
- Package
- Novella Visual Novels
Get Condition
FunctionThis node carries no documentation.
Signature
Condition(Choice: Choice) -> Condition
Condition Condition(ChoiceOption Choice)
Parameters
| name | type | default | description |
|---|---|---|---|
| Choice | Choice | — |
Returns
| result | Condition |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Choice
- Package
- Novella Visual Novels
Id
FunctionAn id of the author's choosing, or null for one made from the text.
Signature
Id(Choice: Choice) -> Text
string Id(ChoiceOption Choice)
Parameters
| name | type | default | description |
|---|---|---|---|
| Choice | Choice | — |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Choice
- Package
- Novella Visual Novels
Get Text
FunctionThis node carries no documentation.
Signature
Text(Choice: Choice) -> Text
string Text(ChoiceOption Choice)
Parameters
| name | type | default | description |
|---|---|---|---|
| Choice | Choice | — |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Choice
- Package
- Novella Visual Novels
To String
FunctionThis node carries no documentation.
Signature
ToString(Choice: Choice) -> Text
string ToString(ChoiceOption Choice)
Parameters
| name | type | default | description |
|---|---|---|---|
| Choice | Choice | — |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Choice
- Package
- Novella Visual Novels
Choice With Id
FunctionThe same choice under an id of the author's choosing, which keeps it remembered as taken when its text is reworded.
Signature
WithId(Choice: Choice, ID: Text) -> Choice
ChoiceOption WithId(ChoiceOption Choice, string id)
Parameters
| name | type | default | description |
|---|---|---|---|
| Choice | Choice | — | |
| ID | Text | — | The id. |
Returns
| Choice | Choice |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Choice
- Package
- Novella Visual Novels