Kontrola przepływu
Skrypt: wywołaj skrypt
Call one of your custom scripts. Once you have chosen a script you will be able to hook up any parameters required.
Odniesienia
/docs/scripting/custom-scripts
- Własne zdarzenie: The script to run.
Warunek: położenie aktora (współrzędne)
Conditionally run part of the script if an actor is at a specified position.
- Aktor: The actor you want to check.
- X: The horizontal position.
- Y: The vertical position.
- Prawda: The script to run if the condition is true.
- Fałsz: The script to run if the condition is false.
Warunek: odległość aktora względem aktora
Conditionally run part of the script if an actor is within a certain distance of another actor.
- Aktor: The actor you want to check.
- Porównanie: The comparison operator to use e.g. 'Less Than' or 'Greater Than'.
- Odległość: The distance value.
- Od: The actor to compare distance with.
- Prawda: The script to run if the condition is true.
- Fałsz: The script to run if the condition is false.
Warunek: kierunek obrotu aktora
Conditionally run part of the script if an actor is facing in a specified direction.
- Aktor: The actor you want to check.
- Kierunek: The actor direction.
- Prawda: The script to run if the condition is true.
- Fałsz: The script to run if the condition is false.
Warunek: położenie aktora względem aktora
Conditionally run part of the script based on the position of one actor relative to another.
- Aktor: The actor you want to check.
- Porównanie: The relative position comparison to use e.g. 'Is Above' or 'Is Below'.
- Other Actor: The actor to compare position with.
- Prawda: The script to run if the condition is true.
- Fałsz: The script to run if the condition is false.
Warunek: urządzenie obsługuje kolor
Conditionally run part of the script if the game is being played on a device or emulator that supports color games.
- Prawda: The script to run if the condition is true.
- Fałsz: The script to run if the condition is false.
Warunek: stan gry zapisano
Conditionally run part of the script if save data is present within the specified save slot.
- Zapisz plik: The save slot to use.
- Prawda: The script to run if the condition is true.
- Fałsz: The script to run if the condition is false.
Warunek: tryb GBA jest aktywny
Conditionally run part of the script if the game is being played on a device or emulator that supports GBA games.
- Prawda: The script to run if the condition is true.
- Fałsz: The script to run if the condition is false.
Warunek: naciśnięty przycisk joypada
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.
Odniesienia
/docs/scripting/script-glossary/input#attach-script-to-button
- Każde z: The input buttons to check.
- Prawda: The script to run if the condition is true.
- Fałsz: The script to run if the condition is false.
Warunel: wyrażenie matematycznee
Conditionally execute part of the script if the specified math expression evaluates to true.
Odniesienia
/docs/scripting/math-expressions
- Expression: The expression to evaluate.
- Prawda: The script to run if the condition is true.
- Fałsz: The script to run if the condition is false.
Warunek: tryb Super GB jest aktywny
Conditionally run part of the script if the game is being played on a device or emulator that supports Super GB games.
- Prawda: The script to run if the condition is true.
- Fałsz: The script to run if the condition is false.
Warunek: zmienna porównuje się do wartości
Conditionally run part of the script based on the value of a variable compared with a value.
- Zmienna: The variable to use.
- Porównanie: The comparison operator to use e.g. 'Less Than' or 'Greater Than'.
- Wartość: The value to compare with.
- Prawda: The script to run if the condition is true.
- Fałsz: The script to run if the condition is false.
Warunek: zmienna porównuje się do zmiennej
Conditionally run part of the script based on the value of a variable compared with another variable.
- Zmienna: The variable to use.
- Porównanie: The comparison operator to use e.g. 'Less Than' or 'Greater Than'.
- Other Variable: The variable to compare with.
- Prawda: The script to run if the condition is true.
- Fałsz: The script to run if the condition is false.
Warunek: zmienna ma flagę
Conditionally run part of the script if the specified variable has the chosen flag set as true.
- Zmienna: The variable to use.
- Flaga: The flag to check.
- Prawda: The script to run if the condition is true.
- Fałsz: The script to run if the condition is false.
Warunek: zmienna jest ''Fałsz''
Conditionally run part of the script if the specified variable is set to false.
- Zmienna: The variable to use.
- Prawda: The script to run if the condition is true.
- Fałsz: The script to run if the condition is false.
Warunek: zmienna jest ''Prawda''
Conditionally run part of the script if the specified variable is set to true.
- Zmienna: The variable to use.
- Prawda: The script to run if the condition is true.
- Fałsz: The script to run if the condition is false.
Pętla
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.
Petla przez
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.
- Przez: The variable to use.
- Od: The initial value of the counter variable.
- Porównanie: The comparison operator to use e.g. 'Less Than' or 'Greater Than'.
- Do: The end value of the counter variable.
- Operacja: The operation to use for combining a value with the counter variable after each loop.
- Wartość: The value to combine with the counter variable after each loop.
Petla gdy
Run part of the script in a loop while an expression is true.
- Expression: The expression to evaluate.
Skrypt: zatrzymaj skrypt (stop)
Stops the current script from running.
Przełącznik
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.
- Zmienna: The variable to use.
- Ilość opcji wyboru: The number of options required.
- Wartość: The value to compare the variable with for running this branch of the script.