Divooka Reference

Scenes

7 nodes

On this page 7

Add Scene

Function

A story with a scene added, as a label of the scene's name.

Signature
AddScene(story: Story, scene: Scene) -> Story
Story AddScene(Story story, SceneDefinition scene)

Parameters

nametypedefaultdescription
storyStory—
sceneScene—

Returns

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

Branch To Scene

Function

The story goes to one scene or another depending on a condition.

Signature
BranchToScene -> Scene Ending
    condition: Condition
    then: Text
    otherwise: Text
SceneEnding BranchToScene(
    Condition condition,
    string then,
    string otherwise)

Parameters

nametypedefaultdescription
conditionCondition—
thenText—
otherwiseText—

Returns

EndingScene Ending
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Scenes
Package
Novella Visual Novels

Choose Scene

Function

The player chooses which scene comes next.

Signature
ChooseScene -> Scene Ending
    caption: Text
    first: Scene Choice
    second: Scene Choice
    third: Scene Choice
    fourth: Scene Choice
SceneEnding ChooseScene(
    string caption,
    SceneChoice first,
    SceneChoice second,
    SceneChoice third,
    SceneChoice fourth)

Parameters

nametypedefaultdescription
captionText—A line shown with the choices; may be empty.
firstScene Choice—The first choice.
secondScene Choice—The second choice.
thirdScene Choice—A third choice, if any.
fourthScene Choice—A fourth choice, if any.

Returns

EndingScene Ending
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Scenes
Package
Novella Visual Novels

End Game

Function

The game ends.

Signature
EndGame() -> Scene Ending
SceneEnding EndGame()

Returns

EndingScene Ending
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Scenes
Package
Novella Visual Novels

Go To Scene

Function

The story goes on to another scene.

Signature
GoToScene(scene: Text) -> Scene Ending
SceneEnding GoToScene(string scene)

Parameters

nametypedefaultdescription
sceneText—The scene.

Returns

EndingScene Ending
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Scenes
Package
Novella Visual Novels

Make Scene

Function

A scene.

Signature
MakeScene -> Scene
    name: Text
    lines: Sequence
    ending: Scene Ending
    background: Text
    transition: Text
    music: Text
SceneDefinition MakeScene(
    string name,
    Sequence lines,
    SceneEnding ending,
    string background = "",
    string transition = "fade",
    string music = "")

Parameters

nametypedefaultdescription
nameText—Its name, which other scenes go to; start for the first.
linesSequence—What happens in it: a sequence of Say, Show and the other Story Writing nodes.
endingScene Ending—Where the story goes after it: Go To Scene, Choose Scene, Branch To Scene or End Game. Left empty, the game ends.
backgroundText—Its background, such as bg plum_garden; empty keeps the stage.
transitionTextfadeHow the background comes in, such as fade or dissolve.
musicText—Music for the scene; empty keeps what plays.

Returns

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

Scene Choice

Function

A choice that leads to a scene.

Signature
MakeSceneChoice -> Scene Choice
    text: Text
    scene: Text
    when: Condition
    effect: Effect
SceneChoice MakeSceneChoice(
    string text,
    string scene,
    Condition when,
    Effect effect)

Parameters

nametypedefaultdescription
textText—What the button says.
sceneText—The scene it leads to.
whenCondition—Offered only when this holds; empty always offers it.
effectEffect—What taking it changes, such as Add To Variable; may be empty.

Returns

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