Conditions
20 nodes
On this page 20
All Of
FunctionEvery one of the conditions holds.
AllOf -> Condition
first: Condition
second: Condition
third: Condition
fourth: ConditionCondition AllOf(
Condition first,
Condition second,
Condition third,
Condition fourth)Parameters
| name | type | default | description |
|---|---|---|---|
| first | Condition | — | |
| second | Condition | — | |
| third | Condition | — | |
| fourth | Condition | — |
Returns
| Condition | Condition |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Conditions
- Package
- Novella Visual Novels
Always
FunctionA condition that always holds.
Always() -> Condition
Condition Always()
Returns
| Condition | Condition |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Conditions
- Package
- Novella Visual Novels
Any Of
FunctionAt least one of the conditions holds.
AnyOf -> Condition
first: Condition
second: Condition
third: Condition
fourth: ConditionCondition AnyOf(
Condition first,
Condition second,
Condition third,
Condition fourth)Parameters
| name | type | default | description |
|---|---|---|---|
| first | Condition | — | |
| second | Condition | — | |
| third | Condition | — | |
| fourth | Condition | — |
Returns
| Condition | Condition |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Conditions
- Package
- Novella Visual Novels
By Chance
FunctionHolds by chance, with a probability from 0 to 1, drawn so that rolling back draws the same.
ByChance(probability: Number) -> Condition
Condition ByChance(double probability)
Parameters
| name | type | default | description |
|---|---|---|---|
| probability | Number | — |
Returns
| Condition | Condition |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Conditions
- Package
- Novella Visual Novels
Compare Variable
FunctionA variable compared with a value.
CompareVariable -> Condition
variable: Text
comparison: Text
value: TextCondition CompareVariable(
string variable,
string comparison = "==",
string value = "")Parameters
| name | type | default | description |
|---|---|---|---|
| variable | Text | — | The variable, such as gift or persistent.endings_seen. |
| comparison | Text | == | One of ==, !=, <, <=, >, >=. |
| value | Text | — | The value as typed: a number, true, false, or text. |
Returns
| Condition | Condition |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Conditions
- Package
- Novella Visual Novels
Compare Variables
FunctionTwo variables compared: trust greater than doubt.
CompareVariables -> Condition
first: Text
comparison: Text
second: TextCondition CompareVariables(
string first,
string comparison,
string second)Parameters
| name | type | default | description |
|---|---|---|---|
| first | Text | — | The first variable. |
| comparison | Text | — | One of ==, !=, <, <=, >, >=. |
| second | Text | — | The second variable. |
Returns
| Condition | Condition |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Conditions
- Package
- Novella Visual Novels
Condition From Function
FunctionA condition a function decides: a Function graph that takes Story Variables and answers true or false, for tests the other nodes cannot put together.
ConditionFromFunction -> Condition
test: Func<Story Variables, Truth>
description: TextCondition ConditionFromFunction(
Func<StoryVariables, bool> test,
string description = "a condition from a function")Parameters
| name | type | default | description |
|---|---|---|---|
| test | Func<Story Variables, Truth> | — | The function. |
| description | Text | a condition from a function | What it tests, in words, for messages and the written-out script. |
Returns
| Condition | Condition |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Conditions
- Package
- Novella Visual Novels
Condition From Script
FunctionA condition written as script, for anything the other nodes do not say: affection >= 3 and gift == "fan".
ConditionFromScript(expression: Text) -> Condition
Condition ConditionFromScript(string expression)
Parameters
| name | type | default | description |
|---|---|---|---|
| expression | Text | — |
Returns
| Condition | Condition |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Conditions
- Package
- Novella Visual Novels
Ever Reached
FunctionA label has been reached in any playthrough, as an ending once seen.
EverReached(label: Text) -> Condition
Condition EverReached(string label)
Parameters
| name | type | default | description |
|---|---|---|---|
| label | Text | — |
Returns
| Condition | Condition |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Conditions
- Package
- Novella Visual Novels
Has Achievement
FunctionAn achievement has been earned.
HasAchievement(achievement: Text) -> Condition
Condition HasAchievement(string achievement)
Parameters
| name | type | default | description |
|---|---|---|---|
| achievement | Text | — |
Returns
| Condition | Condition |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Conditions
- Package
- Novella Visual Novels
Has Heard
FunctionA piece of audio has been heard in any playthrough.
HasHeard(file: Text) -> Condition
Condition HasHeard(string file)
Parameters
| name | type | default | description |
|---|---|---|---|
| file | Text | — |
Returns
| Condition | Condition |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Conditions
- Package
- Novella Visual Novels
Has Seen Image
FunctionAn image has been seen in any playthrough.
HasSeenImage(image: Text) -> Condition
Condition HasSeenImage(string image)
Parameters
| name | type | default | description |
|---|---|---|---|
| image | Text | — |
Returns
| Condition | Condition |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Conditions
- Package
- Novella Visual Novels
Has Visited
FunctionA label (or scene) has been reached in this playthrough.
HasVisited(label: Text) -> Condition
Condition HasVisited(string label)
Parameters
| name | type | default | description |
|---|---|---|---|
| label | Text | — |
Returns
| Condition | Condition |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Conditions
- Package
- Novella Visual Novels
In Language
FunctionThe player reads the game in a language, such as zh-Hans.
InLanguage(language: Text) -> Condition
Condition InLanguage(string language)
Parameters
| name | type | default | description |
|---|---|---|---|
| language | Text | — |
Returns
| Condition | Condition |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Conditions
- Package
- Novella Visual Novels
Is Showing
FunctionAn image with a tag is on the stage now.
IsShowing(tag: Text) -> Condition
Condition IsShowing(string tag)
Parameters
| name | type | default | description |
|---|---|---|---|
| tag | Text | — |
Returns
| Condition | Condition |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Conditions
- Package
- Novella Visual Novels
List Contains
FunctionA list variable holds a value, such as a gift among those given.
ListContains(variable: Text, value: Text) -> Condition
Condition ListContains(string variable, string value)
Parameters
| name | type | default | description |
|---|---|---|---|
| variable | Text | — | |
| value | Text | — |
Returns
| Condition | Condition |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Conditions
- Package
- Novella Visual Novels
Not
FunctionThe condition does not hold.
Not(condition: Condition) -> Condition
Condition Not(Condition condition)
Parameters
| name | type | default | description |
|---|---|---|---|
| condition | Condition | — |
Returns
| Condition | Condition |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Conditions
- Package
- Novella Visual Novels
Variable At Least
FunctionA number variable is at least a value: affection at least 3.
VariableAtLeast(variable: Text, value: Number) -> Condition
Condition VariableAtLeast(string variable, double value)
Parameters
| name | type | default | description |
|---|---|---|---|
| variable | Text | — | |
| value | Number | — |
Returns
| Condition | Condition |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Conditions
- Package
- Novella Visual Novels
Variable Is Set
FunctionA variable holds: true, non-zero, non-empty.
VariableIsSet(variable: Text) -> Condition
Condition VariableIsSet(string variable)
Parameters
| name | type | default | description |
|---|---|---|---|
| variable | Text | — |
Returns
| Condition | Condition |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Conditions
- Package
- Novella Visual Novels
Visited At Least
FunctionA label has been reached at least a number of times in this playthrough: the third visit to the market.
VisitedAtLeast(label: Text, times: Integer) -> Condition
Condition VisitedAtLeast(string label, int times)
Parameters
| name | type | default | description |
|---|---|---|---|
| label | Text | — | |
| times | Integer | — |
Returns
| Condition | Condition |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Conditions
- Package
- Novella Visual Novels