Zum Hauptinhalt springen

Kontrollablauf

Skript aufrufen

Call one of your custom scripts. Once you have chosen a script you will be able to hook up any parameters required.

Referenzen
/docs/scripting/custom-scripts

Skript aufrufen
Benutzerdefiniertes Ereignis
My Custom Script
  • Benutzerdefiniertes Ereignis: The script to run.

Falls Darsteller An Position

Conditionally run part of the script if an actor is at a specified position.

Falls Darsteller An Position
Darsteller
Actor 1
X
0
Y
0
Wahr
Add Event
Andernfalls
  • Darsteller: The actor you want to check.
  • X: The horizontal position.
  • Y: The vertical position.
  • Wahr: The script to run if the condition is true.
  • Falsch: The script to run if the condition is false.

If Actor Distance From Actor

Conditionally run part of the script if an actor is within a certain distance of another actor.

If Actor Distance From Actor
Darsteller
Player
Comparison
<=
Distance
0
Von
Actor 1
Wahr
Add Event
Andernfalls
  • Darsteller: The actor you want to check.
  • Comparison: The comparison operator to use e.g. 'Less Than' or 'Greater Than'.
  • Distance: The distance value.
  • Von: The actor to compare distance with.
  • Wahr: The script to run if the condition is true.
  • Falsch: The script to run if the condition is false.

Falls Blickrichtung Des Darstellers

Conditionally run part of the script if an actor is facing in a specified direction.

Falls Blickrichtung Des Darstellers
Darsteller
Actor 1
Blickrichtung
Wahr
Add Event
Andernfalls
  • Darsteller: The actor you want to check.
  • Blickrichtung: The actor direction.
  • Wahr: The script to run if the condition is true.
  • Falsch: The script to run if the condition is false.

Falls Schauspieler relativ zum Schauspieler

Conditionally run part of the script based on the position of one actor relative to another.

Falls Schauspieler relativ zum Schauspieler
Darsteller
Player
Comparison
Ist oben
Other Actor
Actor 1
Wahr
Add Event
Andernfalls
  • Darsteller: The actor you want to check.
  • Comparison: The relative position comparison to use e.g. 'Is Above' or 'Is Below'.
  • Other Actor: The actor to compare position with.
  • Wahr: The script to run if the condition is true.
  • Falsch: The script to run if the condition is false.

Falls Farbmodus verfügbar ist

Conditionally run part of the script if the game is being played on a device or emulator that supports color games.

Falls Farbmodus verfügbar ist
Wahr
Add Event
Andernfalls
  • Wahr: The script to run if the condition is true.
  • Falsch: The script to run if the condition is false.

Falls Spieldaten Gespeichert

Conditionally run part of the script if save data is present within the specified save slot.

Falls Spieldaten Gespeichert
Speichere Slot
Slot 1
Slot 2
Slot 3
Ausführen, falls der Spieler ein Spiel gespeichert hat.
Wahr
Add Event
Andernfalls
  • Speichere Slot: The save slot to use.
  • Wahr: The script to run if the condition is true.
  • Falsch: The script to run if the condition is false.

Falls GBA-Modus verfügbar ist

Conditionally run part of the script if the game is being played on a device or emulator that supports GBA games.

Falls GBA-Modus verfügbar ist
Wahr
Add Event
Andernfalls
  • Wahr: The script to run if the condition is true.
  • Falsch: The script to run if the condition is false.

Falls Joypad-Eingabe Gedrückt

Conditionally run part of the script if the specified joypad button is currently pressed. Will not wait for user input and will only execute once, if you wish to run a script every time a button is pressed use Attach Script To Button instead.

Referenzen
/docs/scripting/script-glossary/input#attach-script-to-button

Falls Joypad-Eingabe Gedrückt
Beliebiges von
A
B
Start
Select
Wahr
Add Event
Andernfalls
  • Beliebiges von: The input buttons to check.
  • Wahr: The script to run if the condition is true.
  • Falsch: The script to run if the condition is false.

Wenn Matheausdruck

Conditionally execute part of the script if the specified math expression evaluates to true.

Referenzen
/docs/scripting/math-expressions

Wenn Matheausdruck
Expression
e.g. $health >= 0...
Wahr
Add Event
Andernfalls
  • Expression: The expression to evaluate.
  • Wahr: The script to run if the condition is true.
  • Falsch: The script to run if the condition is false.

Falls Super-GB-Modus verfügbar ist

Conditionally run part of the script if the game is being played on a device or emulator that supports Super GB games.

Falls Super-GB-Modus verfügbar ist
Wahr
Add Event
Andernfalls
  • Wahr: The script to run if the condition is true.
  • Falsch: The script to run if the condition is false.

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.

Falls Variable Flag hat

Conditionally run part of the script if the specified variable has the chosen flag set as true.

Falls Variable Flag hat
Variable
$Variable0
Flag
Flag 1
Wahr
Add Event
Andernfalls
  • Variable: The variable to use.
  • Flag: The flag to check.
  • Wahr: The script to run if the condition is true.
  • Falsch: The script to run if the condition is false.

Falls Variable 'Falsch' Ist

Conditionally run part of the script if the specified variable is set to false.

Falls Variable 'Falsch' Ist
Variable
$Variable0
Wahr
Add Event
Andernfalls
  • Variable: The variable to use.
  • Wahr: The script to run if the condition is true.
  • Falsch: The script to run if the condition is false.

Falls Variable 'Wahr' Ist

Conditionally run part of the script if the specified variable is set to true.

Falls Variable 'Wahr' Ist
Variable
$Variable0
Wahr
Add Event
Andernfalls
  • Variable: The variable to use.
  • Wahr: The script to run if the condition is true.
  • Falsch: The script to run if the condition is false.

Endlos-Schleife

Run part of the script in a loop forever. Remember to break out of the loop otherwise the player will become stuck at this point. You can use a Stop Script or Change Scene event to stop the loop.

Endlos-Schleife
Add Event

For-Schleife

Run part of the script in a loop while a counter variable is within a specified range. On each loop the counter variable is modified before the next check.

For-Schleife
Für
$Variable0
Von
0
Comparison
<=
zu
10
Operation
+=
VWert
1
Add Event
  • Für: The variable to use.
  • Von: The initial value of the counter variable.
  • Comparison: The comparison operator to use e.g. 'Less Than' or 'Greater Than'.
  • zu: The end value of the counter variable.
  • Operation: The operation to use for combining a value with the counter variable after each loop.
  • VWert: The value to combine with the counter variable after each loop.

While-Schleife

Run part of the script in a loop while an expression is true.

While-Schleife
Expression
e.g. $health >= 0...
Add Event
  • Expression: The expression to evaluate.

Skript: Anhalten

Stops the current script from running.

Skript: Anhalten
Stoppt die Ausführung des aktuellen Skripts.

Schalter

Conditionally run from multiple options depending on the value of the specified variable. First choose how many options you want to compare the variable against, then set the values to compare and what scripts to execute when the value is matched.

Schalter
Variable
$Variable0
Anzahl der Optionen
2
Wenn: $$value0$$
VWert
1
Add Event
Wenn: $$value1$$
VWert
2
Add Event
Andernfalls
Add Event
  • Variable: The variable to use.
  • Anzahl der Optionen: The number of options required.
  • VWert: The value to compare the variable with for running this branch of the script.