Story Variables
12 nodes
On this page 12
Add
FunctionAdds to a number.
Signature
Add
Story Variables: Story Variables
name: Text
amount: Numbervoid Add(
StoryVariables Story Variables,
string name,
double amount)Parameters
| name | type | default | description |
|---|---|---|---|
| Story Variables | Story Variables | — | |
| name | Text | — | |
| amount | Number | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Story Variables
- Package
- Novella Visual Novels
Flag
FunctionWhether a variable holds: true, non-zero, non-empty.
Signature
Flag(Story Variables: Story Variables, name: Text) -> Truth
bool Flag(StoryVariables Story Variables, string name)
Parameters
| name | type | default | description |
|---|---|---|---|
| Story Variables | Story Variables | — | |
| name | Text | — | The variable. |
Returns
| Flag | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story Variables
- Package
- Novella Visual Novels
Integer
FunctionA number variable's value as a whole number.
Signature
Integer(Story Variables: Story Variables, name: Text) -> Integer
int Integer(StoryVariables Story Variables, string name)
Parameters
| name | type | default | description |
|---|---|---|---|
| Story Variables | Story Variables | — | |
| name | Text | — | The variable. |
Returns
| Integer | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story Variables
- Package
- Novella Visual Novels
List
FunctionA list variable's items.
Signature
List -> IReadOnlyList<Value>
Story Variables: Story Variables
name: TextIReadOnlyList<Value> List(
StoryVariables Story Variables,
string name)Parameters
| name | type | default | description |
|---|---|---|---|
| Story Variables | Story Variables | — | |
| name | Text | — | The variable. |
Returns
| List | IReadOnlyList<Value> |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story Variables
- Package
- Novella Visual Novels
List Contains
FunctionWhether a list variable holds a value, compared as text.
Signature
ListContains -> Truth
Story Variables: Story Variables
name: Text
item: Textbool ListContains(
StoryVariables Story Variables,
string name,
string item)Parameters
| name | type | default | description |
|---|---|---|---|
| Story Variables | Story Variables | — | |
| name | Text | — | The variable. |
| item | Text | — | The value looked for. |
Returns
| Contains | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story Variables
- Package
- Novella Visual Novels
Number
FunctionA number variable's value; unset reads as 0.
Signature
Number(Story Variables: Story Variables, name: Text) -> Number
double Number(StoryVariables Story Variables, string name)
Parameters
| name | type | default | description |
|---|---|---|---|
| Story Variables | Story Variables | — | |
| name | Text | — | The variable. |
Returns
| Number | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story Variables
- Package
- Novella Visual Novels
Random
FunctionA whole number from Minimum to Maximum, both included, from the story's own generator, so rolling back and choosing again draws the same. It advances the generator, so it is not const.
Signature
Random -> Integer
Story Variables: Story Variables
minimum: Integer
maximum: Integerint Random(
StoryVariables Story Variables,
int minimum,
int maximum)Parameters
| name | type | default | description |
|---|---|---|---|
| Story Variables | Story Variables | — | |
| minimum | Integer | — | |
| maximum | Integer | — |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Story Variables
- Package
- Novella Visual Novels
Set Flag
FunctionSets a flag.
Signature
SetFlag
Story Variables: Story Variables
name: Text
value: Truthvoid SetFlag(
StoryVariables Story Variables,
string name,
bool value)Parameters
| name | type | default | description |
|---|---|---|---|
| Story Variables | Story Variables | — | |
| name | Text | — | |
| value | Truth | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Story Variables
- Package
- Novella Visual Novels
Set Number
FunctionSets a number.
Signature
SetNumber
Story Variables: Story Variables
name: Text
value: Numbervoid SetNumber(
StoryVariables Story Variables,
string name,
double value)Parameters
| name | type | default | description |
|---|---|---|---|
| Story Variables | Story Variables | — | |
| name | Text | — | |
| value | Number | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Story Variables
- Package
- Novella Visual Novels
Set Text
FunctionSets text.
Signature
SetText
Story Variables: Story Variables
name: Text
value: Textvoid SetText(
StoryVariables Story Variables,
string name,
string value)Parameters
| name | type | default | description |
|---|---|---|---|
| Story Variables | Story Variables | — | |
| name | Text | — | |
| value | Text | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Story Variables
- Package
- Novella Visual Novels
Text
FunctionA text variable's value; unset reads as empty.
Signature
Text(Story Variables: Story Variables, name: Text) -> Text
string Text(StoryVariables Story Variables, string name)
Parameters
| name | type | default | description |
|---|---|---|---|
| Story Variables | Story Variables | — | |
| name | Text | — | The variable. |
Returns
| Text | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story Variables
- Package
- Novella Visual Novels
Visited
FunctionWhether a label has been entered in this playthrough.
Signature
Visited(Story Variables: Story Variables, label: Text) -> Truth
bool Visited(StoryVariables Story Variables, string label)
Parameters
| name | type | default | description |
|---|---|---|---|
| Story Variables | Story Variables | — | |
| label | Text | — | The label. |
Returns
| Visited | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Story Variables
- Package
- Novella Visual Novels