Story
29 nodes
On this page 29
Add Achievement
FunctionA story with an achievement, which Achieve grants and the Achievements screen lists.
AddAchievement -> Story
story: Story
ID: Text
title: Text
description: Text
hidden: TruthStory AddAchievement(
Story story,
string id,
string title,
string description = "",
bool hidden = false)Parameters
| name | type | default | description |
|---|---|---|---|
| story | Story | — | The story. |
| ID | Text | — | What Achieve names it by. |
| title | Text | — | Its name on the Achievements screen. |
| description | Text | — | What earns it. |
| hidden | Truth | False | Kept secret until it is earned. |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Add Audio Name
FunctionA story with a name for an audio file, so lines can play theme rather than its path.
AddAudioName(story: Story, name: Text, file: Text) -> Story
Story AddAudioName(Story story, string name, string file)
Parameters
| name | type | default | description |
|---|---|---|---|
| story | Story | — | |
| name | Text | — | |
| file | Text | — |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Add Channel
FunctionA story with an audio channel of its own, beside music, sound, voice and ambience.
AddChannel -> Story
story: Story
name: Text
mixer: Text
loop: Truth
restoreOnLoad: Truth
fadeOut: NumberStory AddChannel(
Story story,
string name,
string mixer = "sfx",
bool loop = false,
bool restoreOnLoad = true,
double fadeOut = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| story | Story | — | The story. |
| name | Text | — | The channel's name. |
| mixer | Text | sfx | The volume slider it follows: music, sfx or voice. |
| loop | Truth | False | Whether what plays on it loops unless told otherwise. |
| restoreOnLoad | Truth | True | Whether it starts again when a save is loaded. |
| fadeOut | Number | 0 | Seconds of fade when what plays is replaced or stopped. |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Add Character
FunctionA story with a character added.
AddCharacter -> Story
story: Story
character: Character DefinitionStory AddCharacter(Story story, CharacterDefinition character)
Parameters
| name | type | default | description |
|---|---|---|---|
| story | Story | — | |
| character | Character Definition | — |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Add Constant
FunctionA story with a constant, set when a game starts and again after a load so a changed value reaches old saves.
AddConstant(story: Story, name: Text, value: Text) -> Story
Story AddConstant(Story story, string name, string value)
Parameters
| name | type | default | description |
|---|---|---|---|
| story | Story | — | |
| name | Text | — | |
| value | Text | — |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Add Default
FunctionA story with a variable's starting value: affection and 0.
AddDefault(story: Story, variable: Text, value: Text) -> Story
Story AddDefault(Story story, string variable, string value)
Parameters
| name | type | default | description |
|---|---|---|---|
| story | Story | — | |
| variable | Text | — | |
| value | Text | — |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Add Gallery Entry
FunctionA story with a gallery entry, unlocked once its pictures have been seen.
AddGalleryEntry -> Story
story: Story
ID: Text
title: Text
images: TextStory AddGalleryEntry(
Story story,
string id,
string title,
string images)Parameters
| name | type | default | description |
|---|---|---|---|
| story | Story | — | The story. |
| ID | Text | — | The entry's id. |
| title | Text | — | Its name in the Gallery. |
| images | Text | — | The images it shows, by name and separated by commas: cg red_thread, or cg guqin, cg river_lanterns. The first is the thumbnail. |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Add Gallery Entry When
FunctionA story with a gallery entry unlocked when a condition holds, rather than when its pictures have been seen.
AddGalleryEntryWhen -> Story
story: Story
ID: Text
title: Text
images: Text
when: ConditionStory AddGalleryEntryWhen(
Story story,
string id,
string title,
string images,
Condition when)Parameters
| name | type | default | description |
|---|---|---|---|
| story | Story | — | |
| ID | Text | — | |
| title | Text | — | |
| images | Text | — | |
| when | Condition | — |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Add Image
FunctionA story with an image defined: a name and a file (or a colour such as #000).
AddImage(story: Story, name: Text, file: Text) -> Story
Story AddImage(Story story, string name, string file)
Parameters
| name | type | default | description |
|---|---|---|---|
| story | Story | — | |
| name | Text | — | |
| file | Text | — |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Add Image From Source
FunctionA story with an image from a source made by the Images nodes: a movie, a filtered or composite picture, a switch.
AddImageFromSource -> Story
story: Story
name: Text
source: Image SourceStory AddImageFromSource(
Story story,
string name,
ImageSource source)Parameters
| name | type | default | description |
|---|---|---|---|
| story | Story | — | |
| name | Text | — | |
| source | Image Source | — |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Add Label
FunctionA story with a label added, replacing one of the same name.
AddLabel(story: Story, label: Label) -> Story
Story AddLabel(Story story, Label label)
Parameters
| name | type | default | description |
|---|---|---|---|
| story | Story | — | |
| label | Label | — |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Add Layered Image
FunctionA story with a layered image, assembled with Start Layered Image and the layer nodes.
AddLayeredImage(story: Story, image: Layered Image) -> Story
Story AddLayeredImage(Story story, LayeredImage image)
Parameters
| name | type | default | description |
|---|---|---|---|
| story | Story | — | |
| image | Layered Image | — |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Add Music Track
FunctionA story with a track for the music room, unlocked once heard, or when a condition holds.
AddMusicTrack -> Story
story: Story
file: Text
title: Text
when: ConditionStory AddMusicTrack(
Story story,
string file,
string title,
Condition when)Parameters
| name | type | default | description |
|---|---|---|---|
| story | Story | — | |
| file | Text | — | |
| title | Text | — | |
| when | Condition | — |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Add Python Definitions
FunctionA story with Python run once when a game starts: the functions it defines can be called from any condition, text or effect, as [title_for(trust)].
AddPythonDefinitions(story: Story, code: Text) -> Story
Story AddPythonDefinitions(Story story, string code)
Parameters
| name | type | default | description |
|---|---|---|---|
| story | Story | — | |
| code | Text | — |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Add Screen
FunctionA story with a screen laid out by the Screens nodes, which Show Screen and Call Screen find by its name.
AddScreen(story: Story, screen: Screen Layout) -> Story
Story AddScreen(Story story, ScreenLayout screen)
Parameters
| name | type | default | description |
|---|---|---|---|
| story | Story | — | |
| screen | Screen Layout | — |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Add Style
FunctionA story with a style made by the Styles nodes: a look of its own, or, under one of Novella's own names, a restyling of that part of the game.
AddStyle(story: Story, style: Style Look) -> Story
Story AddStyle(Story story, StyleLook style)
Parameters
| name | type | default | description |
|---|---|---|---|
| story | Story | — | |
| style | Style Look | — |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Add Transition
FunctionA story with a named transition, made from a built-in one: slow as dissolve(2).
AddTransition -> Story
story: Story
name: Text
transition: TextStory AddTransition(Story story, string name, string transition)
Parameters
| name | type | default | description |
|---|---|---|---|
| story | Story | — | The story. |
| name | Text | — | The transition's name. |
| transition | Text | — | What it is, from the Transitions nodes or as written after with. |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Check Story
FunctionChecks a story without its files: undefined labels, characters, transforms and transitions.
CheckStory(story: Story) -> Text Array
string[] CheckStory(Story story)
Parameters
| name | type | default | description |
|---|---|---|---|
| story | Story | — |
Returns
| Problems | Text Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Combine Stories
FunctionTwo stories as one: the second's labels and definitions added to the first's.
CombineStories(first: Story, second: Story) -> Story
Story CombineStories(Story first, Story second)
Parameters
| name | type | default | description |
|---|---|---|---|
| first | Story | — | |
| second | Story | — |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Label Names
FunctionThe labels a story has, in order.
LabelNames(story: Story) -> Text Array
string[] LabelNames(Story story)
Parameters
| name | type | default | description |
|---|---|---|---|
| story | Story | — |
Returns
| Labels | Text Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Make Label
FunctionA label: a named place in the story, holding a sequence.
MakeLabel(name: Text, sequence: Sequence) -> Label
Label MakeLabel(string name, Sequence sequence)
Parameters
| name | type | default | description |
|---|---|---|---|
| name | Text | — | The label's name; the game starts at start. |
| sequence | Sequence | — | What happens there. |
Returns
| Label | Label |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Make Label With Parameters
FunctionA label that takes arguments, which Call With Arguments passes and the label reads as variables.
MakeLabelWithParameters -> Label
name: Text
parameters: Text
sequence: SequenceLabel MakeLabelWithParameters(
string name,
string parameters,
Sequence sequence)Parameters
| name | type | default | description |
|---|---|---|---|
| name | Text | — | The label's name. |
| parameters | Text | — | Its parameters, separated by commas, each with an optional default: who, times=1. |
| sequence | Sequence | — | What happens there. |
Returns
| Label | Label |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Start Story
FunctionAn empty story to add labels and characters to.
StartStory() -> Story
Story StartStory()
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Story From Library
FunctionReads a story from a script file in the document's library.
StoryFromLibrary -> Story
_library: IDivookaAssetLibrary
path: TextStory StoryFromLibrary(
IDivookaAssetLibrary _library,
string path)Parameters
| name | type | default | description |
|---|---|---|---|
| _library | IDivookaAssetLibrary | — | The document's library (supplied automatically). |
| path | Text | — | The script's path in the library. |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Story From Script
FunctionReads a story from script text.
StoryFromScript(script: Text, name: Text) -> Story
Story StoryFromScript(
string script,
string name = "script.novella")Parameters
| name | type | default | description |
|---|---|---|---|
| script | Text | — | Novella script. |
| name | Text | script.novella | A name for error messages. |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Story To Script
FunctionA story written as script.
StoryToScript(story: Story) -> Text
string StoryToScript(Story story)
Parameters
| name | type | default | description |
|---|---|---|---|
| story | Story | — |
Returns
| Script | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Translate Line
FunctionA story with a line translated, found by the label it is in, who says it and what it says.
TranslateLine -> Story
story: Story
language: Text
label: Text
speaker: Text
original: Text
translated: TextStory TranslateLine(
Story story,
string language,
string label,
string speaker,
string original,
string translated)Parameters
| name | type | default | description |
|---|---|---|---|
| story | Story | — | The story. |
| language | Text | — | The language, such as zh-Hans. |
| label | Text | — | The label the line is in. |
| speaker | Text | — | The speaking character's id; empty for narration. |
| original | Text | — | The line as written. |
| translated | Text | — | The line in the language; empty removes it there. |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Translate Line By Id
FunctionA story with a line translated by the id Say Line gave it.
TranslateLineById -> Story
story: Story
language: Text
ID: Text
translated: TextStory TranslateLineById(
Story story,
string language,
string id,
string translated)Parameters
| name | type | default | description |
|---|---|---|---|
| story | Story | — | |
| language | Text | — | |
| ID | Text | — | |
| translated | Text | — |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels
Translate String
FunctionA story with any other text translated: a choice, a name, a prompt, a notification.
TranslateString -> Story
story: Story
language: Text
original: Text
translated: TextStory TranslateString(
Story story,
string language,
string original,
string translated)Parameters
| name | type | default | description |
|---|---|---|---|
| story | Story | — | |
| language | Text | — | |
| original | Text | — | |
| translated | Text | — |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story
- Package
- Novella Visual Novels