Zum Hauptinhalt springen

Variablen

Matheausdruck auswerten

Set a variable to the result of evaluating a math expression.

Referenzen
/docs/scripting/math-expressions

Matheausdruck auswerten
Variable
$Variable0
Expression
e.g. 5 + (6 * $health)...
  • Variable: The variable to use.
  • Expression: The expression to evaluate.

Falls Variable Mit Wert Verglichen

Conditionally run part of the script based on the value of a variable compared with a value.

Falls Variable Mit Wert Verglichen
Variable
$Variable0
Comparison
==
VWert
0
Wahr
Add Event
Andernfalls
  • Variable: The variable to use.
  • Comparison: The comparison operator to use e.g. 'Less Than' or 'Greater Than'.
  • VWert: The value to compare with.
  • Wahr: The script to run if the condition is true.
  • Falsch: The script to run if the condition is false.

Falls Variable Mit Variable Verglichen

Conditionally run part of the script based on the value of a variable compared with another variable.

Falls Variable Mit Variable Verglichen
Variable
$Variable0
Comparison
==
Other Variable
$Variable0
Wahr
Add Event
Andernfalls
  • Variable: The variable to use.
  • Comparison: The comparison operator to use e.g. 'Less Than' or 'Greater Than'.
  • Other Variable: The variable to compare with.
  • Wahr: The script to run if the condition is true.
  • Falsch: The script to run if the condition is false.

Variable: Mathematische Funktionen

Allows you to perform various maths functions on a variable to add/subtract/multiply/divide/modulus a value/variable/random number.

Variable: Mathematische Funktionen
Variable
$Variable0
Operation
Einstellen
VWert
Wahr
  • Variable: The variable to use.
  • Operation: The operation to use for modifying the variable value.
  • VWert: The value to combine with the variable using the selected operation.

Variable: Alle Variablen Auf 'Falsch' Zurücksetzen

Reset all variables used by your project back to false.

Variable: Alle Variablen Auf 'Falsch' Zurücksetzen
ALLE Variablen auf 'Falsch' zurücksetzen.

Seed Zufallszahlengenerator

Place this to run in response to user input to ensure random numbers change between playthroughs.

Seed Zufallszahlengenerator
Platzieren Sie dies als Reaktion auf Benutzereingaben, um sicherzustellen, dass sich die Zufallszahlen zwischen den Durchläufen ändern.

Darsteller: Position In Variablen Speichern

Store the current position of an actor within two variables, one to store the horizontal position and another to store the vertical position.

Darsteller: Position In Variablen Speichern
Darsteller
Actor 1
X
$Variable0
Y
$Variable0
  • Darsteller: The actor you want to check.
  • X: The variable to use for the horizontal position.
  • Y: The variable to use for the vertical position.

Engine: Einstellungen in Variable speichern

Store the value of an Engine Field in a variable.

Referenzen
/docs/settings/#engine-settings

Engine: Einstellungen in Variable speichern
Engine Field
Jump Velocity
  • Engine Field: The engine field to read the value of.

Variable aus Spieldaten in Variable speichern

Read a variable's value from a specified save slot and store it in a variable.

Variable aus Spieldaten in Variable speichern
Variable festlegen
$Variable0
Zu Variable
$Variable0
Von Speicher Slot
Slot 1
Slot 2
Slot 3
  • Variable festlegen: The variable to update.
  • Zu Variable: The variable to read the value of.
  • Von Speicher Slot: The save slot to use.

Variable: Um 1 vermindern

Decrease the value of the specified variable by one.

Variable: Um 1 vermindern
Variable
$Variable0
  • Variable: The variable to use.

Variable: Add Flags

Set selected flags to true on a variable. All unselected flags will keep their previous value.

Variable: Add Flags
Variable
$Variable0
Flag 1
Flag 2
Flag 3
Flag 4
Flag 5
Flag 6
Flag 7
Flag 8
Flag 9
Flag 10
Flag 11
Flag 12
Flag 13
Flag 14
Flag 15
Flag 16
  • Variable: The variable to use.
  • Flag 1: Set flag 1 to true.
  • Flag 2: Set flag 2 to true.
  • Flag 3: Set flag 3 to true.

Variable: Flags hinzufügen

Set selected flags to false on a variable. All unselected flags will keep their previous value.

Variable: Flags hinzufügen
Variable
$Variable0
Flag 1
Flag 2
Flag 3
Flag 4
Flag 5
Flag 6
Flag 7
Flag 8
Flag 9
Flag 10
Flag 11
Flag 12
Flag 13
Flag 14
Flag 15
Flag 16
  • Variable: The variable to use.
  • Flag 1: Set flag 1 to false.
  • Flag 2: Set flag 2 to false.
  • Flag 3: Set flag 3 to false.

Variable: Flags setzen

Set the value of a variable by enabling individual bits of the 16-bit number. Allows 16 true/false values to be stored within a single variable. Setting the flags will replace the previous value of the variable.

Variable: Flags setzen
Variable
$Variable0
Flag 1
Flag 2
Flag 3
Flag 4
Flag 5
Flag 6
Flag 7
Flag 8
Flag 9
Flag 10
Flag 11
Flag 12
Flag 13
Flag 14
Flag 15
Flag 16
  • Variable: The variable to use.
  • Flag 1: Set flag 1 to true.
  • Flag 2: Set flag 2 to true.
  • Flag 3: Set flag 3 to true.

Variable: Um 1 erhöhen

Increase the value of the specified variable by one.

Variable: Um 1 erhöhen
Variable
$Variable0
  • Variable: The variable to use.

Variable: Auf 'Falsch' Setzen

Set the value of the specified variable to false.

Variable: Auf 'Falsch' Setzen
Variable
$Variable0
  • Variable: The variable to use.

Variable: Auf 'Wahr' Setzen

Set the value of the specified variable to true.

Variable: Auf 'Wahr' Setzen
Variable
$Variable0
  • Variable: The variable to use.

Variable: Auf Wert Setzen

Set the specified variable to a defined value.

Variable: Auf Wert Setzen
Variable
$Variable0
VWert
0
  • Variable: The variable to use.
  • VWert: The value to set the selected variable to.