Divooka Reference

Choice

7 nodes

On this page 7

Make Choice

Function

Makes a choice.

Signature
ChoiceOption -> Choice
    text: Text
    body: Sequence
    condition: Condition
ChoiceOption ChoiceOption(
    string text,
    Sequence body,
    Condition condition)

Parameters

nametypedefaultdescription
textText—What the button says.
bodySequence—What happens when it is chosen: a sequence.
conditionCondition—Shown only when this holds, a condition from the Conditions nodes; empty always shows it.

Returns

resultChoice
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Choice
Package
Novella Visual Novels

Get Body

Function

This node carries no documentation.

Signature
Body(Choice: Choice) -> Sequence
Sequence Body(ChoiceOption Choice)

Parameters

nametypedefaultdescription
ChoiceChoice—

Returns

resultSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Choice
Package
Novella Visual Novels

Get Condition

Function

This node carries no documentation.

Signature
Condition(Choice: Choice) -> Condition
Condition Condition(ChoiceOption Choice)

Parameters

nametypedefaultdescription
ChoiceChoice—

Returns

resultCondition
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Choice
Package
Novella Visual Novels

Id

Function

An id of the author's choosing, or null for one made from the text.

Signature
Id(Choice: Choice) -> Text
string Id(ChoiceOption Choice)

Parameters

nametypedefaultdescription
ChoiceChoice—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Choice
Package
Novella Visual Novels

Get Text

Function

This node carries no documentation.

Signature
Text(Choice: Choice) -> Text
string Text(ChoiceOption Choice)

Parameters

nametypedefaultdescription
ChoiceChoice—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Choice
Package
Novella Visual Novels

To String

Function

This node carries no documentation.

Signature
ToString(Choice: Choice) -> Text
string ToString(ChoiceOption Choice)

Parameters

nametypedefaultdescription
ChoiceChoice—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Choice
Package
Novella Visual Novels

Choice With Id

Function

The 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

nametypedefaultdescription
ChoiceChoice—
IDText—The id.

Returns

ChoiceChoice
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Choice
Package
Novella Visual Novels