Scenes
7 nodes
On this page 7
Add Scene
FunctionA 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
| name | type | default | description |
|---|---|---|---|
| story | Story | — | |
| scene | Scene | — |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Scenes
- Package
- Novella Visual Novels
Branch To Scene
FunctionThe story goes to one scene or another depending on a condition.
Signature
BranchToScene -> Scene Ending
condition: Condition
then: Text
otherwise: TextSceneEnding BranchToScene(
Condition condition,
string then,
string otherwise)Parameters
| name | type | default | description |
|---|---|---|---|
| condition | Condition | — | |
| then | Text | — | |
| otherwise | Text | — |
Returns
| Ending | Scene Ending |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Scenes
- Package
- Novella Visual Novels
Choose Scene
FunctionThe player chooses which scene comes next.
Signature
ChooseScene -> Scene Ending
caption: Text
first: Scene Choice
second: Scene Choice
third: Scene Choice
fourth: Scene ChoiceSceneEnding ChooseScene(
string caption,
SceneChoice first,
SceneChoice second,
SceneChoice third,
SceneChoice fourth)Parameters
| name | type | default | description |
|---|---|---|---|
| caption | Text | — | A line shown with the choices; may be empty. |
| first | Scene Choice | — | The first choice. |
| second | Scene Choice | — | The second choice. |
| third | Scene Choice | — | A third choice, if any. |
| fourth | Scene Choice | — | A fourth choice, if any. |
Returns
| Ending | Scene Ending |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Scenes
- Package
- Novella Visual Novels
End Game
FunctionThe game ends.
Signature
EndGame() -> Scene Ending
SceneEnding EndGame()
Returns
| Ending | Scene Ending |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Scenes
- Package
- Novella Visual Novels
Go To Scene
FunctionThe story goes on to another scene.
Signature
GoToScene(scene: Text) -> Scene Ending
SceneEnding GoToScene(string scene)
Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Text | — | The scene. |
Returns
| Ending | Scene Ending |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Scenes
- Package
- Novella Visual Novels
Make Scene
FunctionA scene.
Signature
MakeScene -> Scene
name: Text
lines: Sequence
ending: Scene Ending
background: Text
transition: Text
music: TextSceneDefinition MakeScene(
string name,
Sequence lines,
SceneEnding ending,
string background = "",
string transition = "fade",
string music = "")Parameters
| name | type | default | description |
|---|---|---|---|
| name | Text | — | Its name, which other scenes go to; start for the first. |
| lines | Sequence | — | What happens in it: a sequence of Say, Show and the other Story Writing nodes. |
| ending | Scene Ending | — | Where the story goes after it: Go To Scene, Choose Scene, Branch To Scene or End Game. Left empty, the game ends. |
| background | Text | — | Its background, such as bg plum_garden; empty keeps the stage. |
| transition | Text | fade | How the background comes in, such as fade or dissolve. |
| music | Text | — | Music for the scene; empty keeps what plays. |
Returns
| Scene | Scene |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Scenes
- Package
- Novella Visual Novels
Scene Choice
FunctionA choice that leads to a scene.
Signature
MakeSceneChoice -> Scene Choice
text: Text
scene: Text
when: Condition
effect: EffectSceneChoice MakeSceneChoice(
string text,
string scene,
Condition when,
Effect effect)Parameters
| name | type | default | description |
|---|---|---|---|
| text | Text | — | What the button says. |
| scene | Text | — | The scene it leads to. |
| when | Condition | — | Offered only when this holds; empty always offers it. |
| effect | Effect | — | What taking it changes, such as Add To Variable; may be empty. |
Returns
| Choice | Scene Choice |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Scenes
- Package
- Novella Visual Novels