Divooka Reference

Story Writing

59 nodes

On this page 59

Achieve

Function

Grants an achievement.

Signature
Achieve(sequence: Sequence, achievement: Text) -> Sequence
Sequence Achieve(Sequence sequence, string achievement)

Parameters

nametypedefaultdescription
sequenceSequence—
achievementText—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Add Choice

Function

The choices with one more after them.

Signature
AddChoice(choices: Choices, choice: Choice) -> Choices
Choices AddChoice(Choices choices, ChoiceOption choice)

Parameters

nametypedefaultdescription
choicesChoices—
choiceChoice—

Returns

ChoicesChoices
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Apply Effect

Function

Changes the story's variables at this point: an effect from the Effects nodes, such as Add To Variable.

Signature
ApplyEffect(sequence: Sequence, effect: Effect) -> Sequence
Sequence ApplyEffect(Sequence sequence, Effect effect)

Parameters

nametypedefaultdescription
sequenceSequence—The sequence so far.
effectEffect—The change.

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Call

Function

Runs another label and comes back.

Signature
Call(sequence: Sequence, label: Text) -> Sequence
Sequence Call(Sequence sequence, string label)

Parameters

nametypedefaultdescription
sequenceSequence—
labelText—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Call Screen

Function

Shows a screen and waits for the player to answer it; the answer is in _return afterwards.

Signature
CallScreen -> Sequence
    sequence: Sequence
    screen: Text
    with: Text
    argument: Text
Sequence CallScreen(
    Sequence sequence,
    string screen,
    string with = "",
    string argument = "")

Parameters

nametypedefaultdescription
sequenceSequence—The sequence so far.
screenText—The screen's name.
withText—A transition.
argumentText—A value for the screen's first parameter, as typed; empty for none.

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Call Variable

Function

Runs the label a variable names, then comes back.

Signature
CallVariable(sequence: Sequence, variable: Text) -> Sequence
Sequence CallVariable(Sequence sequence, string variable)

Parameters

nametypedefaultdescription
sequenceSequence—
variableText—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Call With Arguments

Function

Runs another label with arguments for its parameters, each as typed: a number, true, text.

Signature
CallWithArguments -> Sequence
    sequence: Sequence
    label: Text
    first: Text
    second: Text
    third: Text
Sequence CallWithArguments(
    Sequence sequence,
    string label,
    string first = "",
    string second = "",
    string third = "")

Parameters

nametypedefaultdescription
sequenceSequence—
labelText—
firstText—
secondText—
thirdText—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Centered

Function

Text in the middle of the screen with no window, as for a chapter title.

Signature
Centered(sequence: Sequence, text: Text) -> Sequence
Sequence Centered(Sequence sequence, string text)

Parameters

nametypedefaultdescription
sequenceSequence—
textText—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Concatenate

Function

One sequence followed by another.

Signature
Concatenate(first: Sequence, second: Sequence) -> Sequence
Sequence Concatenate(Sequence first, Sequence second)

Parameters

nametypedefaultdescription
firstSequence—
secondSequence—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Extend

Function

Continues the line before, as when a thought is finished after a pause.

Signature
Extend(sequence: Sequence, text: Text) -> Sequence
Sequence Extend(Sequence sequence, string text)

Parameters

nametypedefaultdescription
sequenceSequence—
textText—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Hard Pause

Function

Waits for some seconds and cannot be clicked through.

Signature
HardPause(sequence: Sequence, seconds: Number) -> Sequence
Sequence HardPause(Sequence sequence, double seconds)

Parameters

nametypedefaultdescription
sequenceSequence—
secondsNumber—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Hide

Function

Hides an image.

Signature
Hide(sequence: Sequence, tag: Text, with: Text) -> Sequence
Sequence Hide(Sequence sequence, string tag, string with = "")

Parameters

nametypedefaultdescription
sequenceSequence—
tagText—
withText—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Hide Screen

Function

Hides a shown screen.

Signature
HideScreen -> Sequence
    sequence: Sequence
    screen: Text
    with: Text
Sequence HideScreen(
    Sequence sequence,
    string screen,
    string with = "")

Parameters

nametypedefaultdescription
sequenceSequence—
screenText—
withText—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Hide With Options

Function

Hides an image on a layer.

Signature
HideWithOptions -> Sequence
    sequence: Sequence
    tag: Text
    with: Text
    layer: Text
Sequence HideWithOptions(
    Sequence sequence,
    string tag,
    string with = "",
    string layer = "")

Parameters

nametypedefaultdescription
sequenceSequence—
tagText—
withText—
layerText—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

If

Function

Runs one sequence or another depending on a condition.

Signature
If -> Sequence
    sequence: Sequence
    condition: Condition
    then: Sequence
    otherwise: Sequence
Sequence If(
    Sequence sequence,
    Condition condition,
    Sequence then,
    Sequence otherwise)

Parameters

nametypedefaultdescription
sequenceSequence—The sequence so far.
conditionCondition—A condition from the Conditions nodes, such as Variable At Least.
thenSequence—What happens when it holds.
otherwiseSequence—What happens when it does not; may be left empty.

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Input

Function

Asks the player to type into a variable.

Signature
Input -> Sequence
    sequence: Sequence
    variable: Text
    prompt: Text
    defaultText: Text
Sequence Input(
    Sequence sequence,
    string variable,
    string prompt,
    string defaultText = "")

Parameters

nametypedefaultdescription
sequenceSequence—
variableText—
promptText—
defaultTextText—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Input With Options

Function

Asks the player to type into a variable, with a length and the characters allowed.

Signature
InputWithOptions -> Sequence
    sequence: Sequence
    variable: Text
    prompt: Text
    defaultText: Text
    maximumLength: Integer
    allowed: Text
Sequence InputWithOptions(
    Sequence sequence,
    string variable,
    string prompt,
    string defaultText = "",
    int maximumLength = 24,
    string allowed = "")

Parameters

nametypedefaultdescription
sequenceSequence—The sequence so far.
variableText—The variable the answer goes into.
promptText—The question.
defaultTextText—What the field holds to begin with.
maximumLengthInteger24The longest answer accepted.
allowedText—The characters that may be typed; empty for any.

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Jump

Function

Continues at another label.

Signature
Jump(sequence: Sequence, label: Text) -> Sequence
Sequence Jump(Sequence sequence, string label)

Parameters

nametypedefaultdescription
sequenceSequence—
labelText—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Jump From Function

Function

Continues at the label a function of the story's variables names: a Function graph taking Story Variables and answering text.

Signature
JumpFromFunction -> Sequence
    sequence: Sequence
    label: Func<Story Variables, Text>
Sequence JumpFromFunction(
    Sequence sequence,
    Func<StoryVariables, string> label)

Parameters

nametypedefaultdescription
sequenceSequence—The sequence so far.
labelFunc<Story Variables, Text>—The function that names the label.

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Jump To Variable

Function

Continues at the label a variable names.

Signature
JumpToVariable(sequence: Sequence, variable: Text) -> Sequence
Sequence JumpToVariable(Sequence sequence, string variable)

Parameters

nametypedefaultdescription
sequenceSequence—
variableText—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Movie

Function

Plays a full-screen movie.

Signature
Movie -> Sequence
    sequence: Sequence
    file: Text
    skippable: Truth
Sequence Movie(
    Sequence sequence,
    string file,
    bool skippable = true)

Parameters

nametypedefaultdescription
sequenceSequence—
fileText—
skippableTruthTrue

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Movie With Options

Function

A full-screen movie, which may keep the music playing under it.

Signature
MovieWithOptions -> Sequence
    sequence: Sequence
    file: Text
    skippable: Truth
    keepMusic: Truth
Sequence MovieWithOptions(
    Sequence sequence,
    string file,
    bool skippable = true,
    bool keepMusic = false)

Parameters

nametypedefaultdescription
sequenceSequence—
fileText—
skippableTruthTrue
keepMusicTruthFalse

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Narrate

Function

Narration: a line with no speaker.

Signature
Narrate(sequence: Sequence, text: Text) -> Sequence
Sequence Narrate(Sequence sequence, string text)

Parameters

nametypedefaultdescription
sequenceSequence—
textText—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Notify

Function

Shows a notification.

Signature
Notify(sequence: Sequence, text: Text) -> Sequence
Sequence Notify(Sequence sequence, string text)

Parameters

nametypedefaultdescription
sequenceSequence—
textText—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

NVL Clear

Function

Clears the full-screen NVL page.

Signature
NvlClear(sequence: Sequence) -> Sequence
Sequence NvlClear(Sequence sequence)

Parameters

nametypedefaultdescription
sequenceSequence—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Pause

Function

Waits for a click, or for some seconds.

Signature
Pause(sequence: Sequence, seconds: Number) -> Sequence
Sequence Pause(Sequence sequence, double seconds = 0)

Parameters

nametypedefaultdescription
sequenceSequence—The sequence so far.
secondsNumber0How long; 0 waits for a click.

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Play

Function

Plays a file on any channel: music, sound, voice, ambience, or one the story defines.

Signature
Play -> Sequence
    sequence: Sequence
    channel: Text
    file: Text
    fadeIn: Number
Sequence Play(
    Sequence sequence,
    string channel,
    string file,
    double fadeIn = 0)

Parameters

nametypedefaultdescription
sequenceSequence—
channelText—
fileText—
fadeInNumber0

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Play Music

Function

Plays music, which loops until stopped or replaced.

Signature
PlayMusic -> Sequence
    sequence: Sequence
    file: Text
    fadeIn: Number
Sequence PlayMusic(
    Sequence sequence,
    string file,
    double fadeIn = 1)

Parameters

nametypedefaultdescription
sequenceSequence—The sequence so far.
fileText—The music file among the game's files.
fadeInNumber1Seconds to fade in.

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Play Sound

Function

Plays a sound once.

Signature
PlaySound(sequence: Sequence, file: Text) -> Sequence
Sequence PlaySound(Sequence sequence, string file)

Parameters

nametypedefaultdescription
sequenceSequence—
fileText—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Play With Options

Function

Plays files on a channel with every option a script's play has.

Signature
PlayWithOptions -> Sequence
    sequence: Sequence
    channel: Text
    files: Text
    fadeIn: Number
    fadeOut: Number
    loop: Text
    volume: Number
    ifChanged: Truth
Sequence PlayWithOptions(
    Sequence sequence,
    string channel,
    string files,
    double fadeIn = 0,
    double fadeOut = -1,
    string loop = "",
    double volume = 1,
    bool ifChanged = false)

Parameters

nametypedefaultdescription
sequenceSequence—The sequence so far.
channelText—The channel: music, sound, voice, ambience, or one the story defines.
filesText—Files or audio names, separated by commas, played in order.
fadeInNumber0Seconds to fade in.
fadeOutNumber-1Seconds to fade out what played; below 0 takes the channel's.
loopText—loop, once, or empty for the channel's habit.
volumeNumber1Relative volume, 0 to 1.
ifChangedTruthFalseDo nothing if the same files already play.

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Python Block

Function

Python run against the story's variables where the sequence reaches it; what it sets that the story can hold goes back into the story. The game needs Novella.Python, which Divooka Compute has.

Signature
PythonBlock(sequence: Sequence, code: Text) -> Sequence
Sequence PythonBlock(Sequence sequence, string code)

Parameters

nametypedefaultdescription
sequenceSequence—The sequence so far.
codeText—The Python, as many lines as it needs.

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Queue

Function

Adds files to a channel's queue, to play when what plays now ends.

Signature
Queue -> Sequence
    sequence: Sequence
    channel: Text
    files: Text
    loop: Text
    volume: Number
Sequence Queue(
    Sequence sequence,
    string channel,
    string files,
    string loop = "",
    double volume = 1)

Parameters

nametypedefaultdescription
sequenceSequence—
channelText—
filesText—
loopText—
volumeNumber1

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Return

Function

Returns from a called label, or ends the game.

Signature
Return(sequence: Sequence) -> Sequence
Sequence Return(Sequence sequence)

Parameters

nametypedefaultdescription
sequenceSequence—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Return Value

Function

Returns from a called label with a value, as typed, which the caller reads as _return.

Signature
ReturnValue(sequence: Sequence, value: Text) -> Sequence
Sequence ReturnValue(Sequence sequence, string value)

Parameters

nametypedefaultdescription
sequenceSequence—
valueText—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Return Variable

Function

Returns from a called label with a variable's value.

Signature
ReturnVariable(sequence: Sequence, variable: Text) -> Sequence
Sequence ReturnVariable(Sequence sequence, string variable)

Parameters

nametypedefaultdescription
sequenceSequence—
variableText—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Run Command

Function

Runs a command the game implements; its result is in _return afterwards.

Signature
RunCommand -> Sequence
    sequence: Sequence
    command: Text
    arguments: Text
Sequence RunCommand(
    Sequence sequence,
    string command,
    string arguments = "")

Parameters

nametypedefaultdescription
sequenceSequence—The sequence so far.
commandText—The command's name.
argumentsText—Arguments as expressions, separated by commas: "lantern", 3.

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Run Command With Values

Function

Runs a command the game implements with arguments, each as typed; its result is in _return afterwards.

Signature
RunCommandWithValues -> Sequence
    sequence: Sequence
    command: Text
    first: Text
    second: Text
    third: Text
Sequence RunCommandWithValues(
    Sequence sequence,
    string command,
    string first = "",
    string second = "",
    string third = "")

Parameters

nametypedefaultdescription
sequenceSequence—
commandText—
firstText—
secondText—
thirdText—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Say

Function

A line of dialogue.

Signature
Say -> Sequence
    sequence: Sequence
    character: Text
    text: Text
    attributes: Text
Sequence Say(
    Sequence sequence,
    string character,
    string text,
    string attributes = "")

Parameters

nametypedefaultdescription
sequenceSequence—The sequence so far.
characterText—The speaking character's id; empty for narration.
textText—The line. Text tags ({b}, {w}...) and [variable] work.
attributesText—Image attributes to show on the speaker, such as smile.

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Say As

Function

A line from someone who is not a defined character, such as a shopkeeper.

Signature
SayAs(sequence: Sequence, speaker: Text, text: Text) -> Sequence
Sequence SayAs(Sequence sequence, string speaker, string text)

Parameters

nametypedefaultdescription
sequenceSequence—
speakerText—
textText—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Say Briefly

Function

A line whose expression change lasts only while it is up.

Signature
SayBriefly -> Sequence
    sequence: Sequence
    character: Text
    text: Text
    attributes: Text
Sequence SayBriefly(
    Sequence sequence,
    string character,
    string text,
    string attributes)

Parameters

nametypedefaultdescription
sequenceSequence—
characterText—
textText—
attributesText—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Say Line

Function

A line with everything a script line can carry: an expression change for the line or after it, a transition, an id for translations.

Signature
SayLine -> Sequence
    sequence: Sequence
    character: Text
    text: Text
    attributes: Text
    briefly: Text
    with: Text
    ID: Text
Sequence SayLine(
    Sequence sequence,
    string character,
    string text,
    string attributes = "",
    string briefly = "",
    string with = "",
    string id = "")

Parameters

nametypedefaultdescription
sequenceSequence—The sequence so far.
characterText—The speaking character's id; empty for narration.
textText—The line.
attributesText—Image attributes shown on the speaker from this line on, such as smile.
brieflyText—Image attributes shown only while this line is up, such as shy.
withText—A transition as the line appears; empty for none.
IDText—An id of the author's choosing, which translations can name; empty for one made from the text.

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Scene

Function

Clears the stage and shows a background.

Signature
Scene(sequence: Sequence, image: Text, with: Text) -> Sequence
Sequence Scene(
    Sequence sequence,
    string image = "",
    string with = "")

Parameters

nametypedefaultdescription
sequenceSequence—The sequence so far.
imageText—The background, such as bg garden; empty clears to black.
withText—A transition, such as fade.

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Scene With Options

Function

Clears the stage (or a layer) and shows a background, which may be placed or animated, such as a slow pan.

Signature
SceneWithOptions -> Sequence
    sequence: Sequence
    image: Text
    with: Text
    layer: Text
    at: Text
    animation: Animation
Sequence SceneWithOptions(
    Sequence sequence,
    string image = "",
    string with = "",
    string layer = "",
    string at = "",
    Animation animation)

Parameters

nametypedefaultdescription
sequenceSequence—The sequence so far.
imageText—The background; empty clears to black.
withText—A transition.
layerText—The layer to clear, when not the master one.
atText—Transforms for the background, separated by commas.
animationAnimation—An animation for the background.

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Script

Function

Adds statements written as script, for anything the other nodes do not cover.

Signature
Script(sequence: Sequence, script: Text) -> Sequence
Sequence Script(Sequence sequence, string script)

Parameters

nametypedefaultdescription
sequenceSequence—The sequence so far.
scriptText—Statements in Novella script, one per line.

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Sequence To Script

Function

A sequence written as script, to read what a chain of nodes makes.

Signature
SequenceToScript(sequence: Sequence) -> Text
string SequenceToScript(Sequence sequence)

Parameters

nametypedefaultdescription
sequenceSequence—

Returns

ScriptText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Show

Function

Shows an image, or changes one showing.

Signature
Show -> Sequence
    sequence: Sequence
    image: Text
    at: Text
    with: Text
Sequence Show(
    Sequence sequence,
    string image,
    string at = "",
    string with = "")

Parameters

nametypedefaultdescription
sequenceSequence—The sequence so far.
imageText—The image's name: a tag and attributes, such as qinglan smile.
atText—Where: left, center, right, or a transform the story defines; empty keeps the position.
withText—A transition: dissolve, fade, moveinright...; empty is instant.

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Show Screen

Function

Shows a screen over the game and carries on: a status bar, a map button.

Signature
ShowScreen -> Sequence
    sequence: Sequence
    screen: Text
    with: Text
    argument: Text
Sequence ShowScreen(
    Sequence sequence,
    string screen,
    string with = "",
    string argument = "")

Parameters

nametypedefaultdescription
sequenceSequence—The sequence so far.
screenText—The screen's name.
withText—A transition.
argumentText—A value for the screen's first parameter, as typed; empty for none.

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Show With Options

Function

Shows an image with everything a script's show can say: where, behind what, how high in the stack, under what name, on which layer, and an animation of its own.

Signature
ShowWithOptions -> Sequence
    sequence: Sequence
    image: Text
    at: Text
    with: Text
    behind: Text
    zorder: Integer
    showAs: Text
    layer: Text
    animation: Animation
Sequence ShowWithOptions(
    Sequence sequence,
    string image,
    string at = "",
    string with = "",
    string behind = "",
    int zorder = 0,
    string showAs = "",
    string layer = "",
    Animation animation)

Parameters

nametypedefaultdescription
sequenceSequence—The sequence so far.
imageText—A tag and attributes, such as qinglan smile.
atText—Transforms, separated by commas; one taking arguments is written as a call, such as bob(30).
withText—A transition.
behindText—Tags to show it behind, separated by commas.
zorderInteger0Its place in the stack: higher is nearer; 0 is the default.
showAsText—Another tag to show it under, so one image can show twice.
layerText—A layer other than the master one.
animationAnimation—An animation of its own, from the Animation nodes.

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Start Choices

Function

No choices yet, to add to with Add Choice.

Signature
StartChoices() -> Choices
Choices StartChoices()

Returns

ChoicesChoices
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Start Sequence

Function

An empty sequence to build on.

Signature
StartSequence() -> Sequence
Sequence StartSequence()

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Stop

Function

Stops a channel.

Signature
Stop -> Sequence
    sequence: Sequence
    channel: Text
    fadeOut: Number
Sequence Stop(
    Sequence sequence,
    string channel = "music",
    double fadeOut = 1)

Parameters

nametypedefaultdescription
sequenceSequence—
channelTextmusic
fadeOutNumber1

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Voice

Function

Sets the voice file for the next line.

Signature
Voice(sequence: Sequence, file: Text) -> Sequence
Sequence Voice(Sequence sequence, string file)

Parameters

nametypedefaultdescription
sequenceSequence—
fileText—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Voice Sustain

Function

Keeps the voice playing on through the next line.

Signature
VoiceSustain(sequence: Sequence) -> Sequence
Sequence VoiceSustain(Sequence sequence)

Parameters

nametypedefaultdescription
sequenceSequence—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

While

Function

Repeats a sequence while a condition holds.

Signature
While -> Sequence
    sequence: Sequence
    condition: Condition
    body: Sequence
Sequence While(
    Sequence sequence,
    Condition condition,
    Sequence body)

Parameters

nametypedefaultdescription
sequenceSequence—
conditionCondition—
bodySequence—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Window

Function

Shows or hides the dialogue window: show, hide or auto.

Signature
Window(sequence: Sequence, mode: Text) -> Sequence
Sequence Window(Sequence sequence, string mode = "auto")

Parameters

nametypedefaultdescription
sequenceSequence—
modeTextauto

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

Window With Transition

Function

Shows or hides the dialogue window with a transition: show, hide or auto.

Signature
WindowWithTransition -> Sequence
    sequence: Sequence
    mode: Text
    with: Text
Sequence WindowWithTransition(
    Sequence sequence,
    string mode,
    string with)

Parameters

nametypedefaultdescription
sequenceSequence—
modeText—
withText—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels

With

Function

Runs a transition over what changed since the last line.

Signature
With(sequence: Sequence, transition: Text) -> Sequence
Sequence With(Sequence sequence, string transition)

Parameters

nametypedefaultdescription
sequenceSequence—
transitionText—

Returns

SequenceSequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Story Writing
Package
Novella Visual Novels