Effects
16 nodes
On this page 16
Add To List
FunctionAdds a value to a list variable, such as a gift to those given.
AddToList(variable: Text, value: Text) -> Effect
Effect AddToList(string variable, string value)
Parameters
| name | type | default | description |
|---|---|---|---|
| variable | Text | — | |
| value | Text | — |
Returns
| Effect | Effect |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Effects
- Package
- Novella Visual Novels
Add To Variable
FunctionAdds to a number variable.
AddToVariable(variable: Text, amount: Number) -> Effect
Effect AddToVariable(string variable, double amount = 1)
Parameters
| name | type | default | description |
|---|---|---|---|
| variable | Text | — | |
| amount | Number | 1 |
Returns
| Effect | Effect |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Effects
- Package
- Novella Visual Novels
Change Variable
FunctionChanges a variable by an operator: =, +=, -=, *=, /=, //= or %=.
ChangeVariable -> Effect
variable: Text
assignment: Text
value: TextEffect ChangeVariable(
string variable,
string assignment,
string value)Parameters
| name | type | default | description |
|---|---|---|---|
| variable | Text | — | |
| assignment | Text | — | |
| value | Text | — |
Returns
| Effect | Effect |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Effects
- Package
- Novella Visual Novels
Change Variable By Variable
FunctionChanges a variable by another variable's value: bag-=chosen takes the chosen gift out of the bag, coins+=reward adds a reward.
ChangeVariableByVariable -> Effect
variable: Text
assignment: Text
other: TextEffect ChangeVariableByVariable(
string variable,
string assignment,
string other)Parameters
| name | type | default | description |
|---|---|---|---|
| variable | Text | — | The variable changed. |
| assignment | Text | — | One of =, +=, -=, *=, /=, //=, %=. |
| other | Text | — | The variable whose value it is changed by. |
Returns
| Effect | Effect |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Effects
- Package
- Novella Visual Novels
Combine Effects
FunctionSeveral changes, in order.
CombineEffects -> Effect
first: Effect
second: Effect
third: Effect
fourth: EffectEffect CombineEffects(
Effect first,
Effect second,
Effect third,
Effect fourth)Parameters
| name | type | default | description |
|---|---|---|---|
| first | Effect | — | |
| second | Effect | — | |
| third | Effect | — | |
| fourth | Effect | — |
Returns
| Effect | Effect |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Effects
- Package
- Novella Visual Novels
Copy Variable
FunctionSets a variable to another's value.
CopyVariable(variable: Text, from: Text) -> Effect
Effect CopyVariable(string variable, string from)
Parameters
| name | type | default | description |
|---|---|---|---|
| variable | Text | — | |
| from | Text | — |
Returns
| Effect | Effect |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Effects
- Package
- Novella Visual Novels
Effect From Function
FunctionChanges the story's variables however a graph says: a graph that takes Story Variables and sets them with Set Number, Set Text and Set Flag.
EffectFromFunction -> Effect
change: Action<Story Variables>
description: TextEffect EffectFromFunction(
Action<StoryVariables> change,
string description = "an effect from a function")Parameters
| name | type | default | description |
|---|---|---|---|
| change | Action<Story Variables> | — | The graph. |
| description | Text | an effect from a function | What it changes, in words. |
Returns
| Effect | Effect |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Effects
- Package
- Novella Visual Novels
Effect From Script
FunctionA change written as script, as after $: affection += 1.
EffectFromScript(code: Text) -> Effect
Effect EffectFromScript(string code)
Parameters
| name | type | default | description |
|---|---|---|---|
| code | Text | — |
Returns
| Effect | Effect |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Effects
- Package
- Novella Visual Novels
Number From Function
FunctionSets a number variable to what a function answers: a Function graph that takes Story Variables and answers a number.
NumberFromFunction -> Effect
variable: Text
compute: Func<Story Variables, Number>Effect NumberFromFunction(
string variable,
Func<StoryVariables, double> compute)Parameters
| name | type | default | description |
|---|---|---|---|
| variable | Text | — | The variable. |
| compute | Func<Story Variables, Number> | — | The function. |
Returns
| Effect | Effect |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Effects
- Package
- Novella Visual Novels
Random Number
FunctionSets a variable to a whole number from the minimum to the maximum, both included, drawn so that rolling back draws the same.
RandomNumber -> Effect
variable: Text
minimum: Integer
maximum: IntegerEffect RandomNumber(string variable, int minimum, int maximum)
Parameters
| name | type | default | description |
|---|---|---|---|
| variable | Text | — | |
| minimum | Integer | — | |
| maximum | Integer | — |
Returns
| Effect | Effect |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Effects
- Package
- Novella Visual Novels
Remove From List
FunctionRemoves a value from a list variable.
RemoveFromList(variable: Text, value: Text) -> Effect
Effect RemoveFromList(string variable, string value)
Parameters
| name | type | default | description |
|---|---|---|---|
| variable | Text | — | |
| value | Text | — |
Returns
| Effect | Effect |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Effects
- Package
- Novella Visual Novels
Set To Condition
FunctionSets a variable to whether a condition holds now.
SetToCondition(variable: Text, condition: Condition) -> Effect
Effect SetToCondition(string variable, Condition condition)
Parameters
| name | type | default | description |
|---|---|---|---|
| variable | Text | — | |
| condition | Condition | — |
Returns
| Effect | Effect |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Effects
- Package
- Novella Visual Novels
Set Variable
FunctionSets a variable to a value.
SetVariable(variable: Text, value: Text) -> Effect
Effect SetVariable(string variable, string value)
Parameters
| name | type | default | description |
|---|---|---|---|
| variable | Text | — | The variable. |
| value | Text | — | The value as typed: a number, true, false, or text. |
Returns
| Effect | Effect |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Effects
- Package
- Novella Visual Novels
Subtract From Variable
FunctionTakes from a number variable.
SubtractFromVariable(variable: Text, amount: Number) -> Effect
Effect SubtractFromVariable(string variable, double amount = 1)
Parameters
| name | type | default | description |
|---|---|---|---|
| variable | Text | — | |
| amount | Number | 1 |
Returns
| Effect | Effect |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Effects
- Package
- Novella Visual Novels
Text From Function
FunctionSets a text variable to what a function answers: a Function graph that takes Story Variables and answers text.
TextFromFunction -> Effect
variable: Text
compute: Func<Story Variables, Text>Effect TextFromFunction(
string variable,
Func<StoryVariables, string> compute)Parameters
| name | type | default | description |
|---|---|---|---|
| variable | Text | — | The variable. |
| compute | Func<Story Variables, Text> | — | The function. |
Returns
| Effect | Effect |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Effects
- Package
- Novella Visual Novels
Toggle Variable
FunctionTurns a true variable false, and a false one true.
ToggleVariable(variable: Text) -> Effect
Effect ToggleVariable(string variable)
Parameters
| name | type | default | description |
|---|---|---|---|
| variable | Text | — |
Returns
| Effect | Effect |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Effects
- Package
- Novella Visual Novels