The Basic commands are technical necessities in order to be flexible with your game.

 

Wait

Temporarily halts scene processing. Parallel running common events excluded.

 

Wait for Input

Waits until a key/button is pressed/released.

 

Comment

The Comment command is for users to create notes in their code. It doesn't run in-game and can be safely used in-between commands.

Note: You can also use Right Arrow () key to disable commands as long as they're not under commands that requires sub-commands to be tabbed. (ex. Condition)

 

Switch

A switch  is used to hold an ON/OFF switch value. It can be a single switch or multiple switches. There are three scopes, Local, Global and Persistent.

 

Number Variable

A number variable is used to hold a numeric value. It can be a single variable or multiple variables. There are three scopes, Local, Global and Persistent.

 

 

Note: To use a Variable for Value, press the [...] button.

 

Decimal Variable

A decimal variable is the same as a number variable. It is used to hold a numeric value. It can be a single variable or multiple variables. There are three scopes, Local, Global and Persistent. It is not an additional variable type. The Number Variable and Decimal Variable command operate on the same number variables.

 

The only difference from Number Variable command is that this command allows you to control how the result is rounded and also allows you to input decimal/floating-point numbers. By default, the result is not rounded. With Number Variable command, the result of a division is always rounded down and also you cannot enter decimal/floating-point values.

 

In short: Decimal Variable command allows you to deal with decimal/floating-point numbers. It is recommended to use Number Variable command if possible.

 

Note: To use a Variable for Value, press the [...] button.

 

Text Variable

A text variable is used to hold texts. It can be a single variable or multiple variables. There are three scopes, Local, Global and Persistent.

 

Note: To use a Variable for Value, press the [...] button.

 

Reset Variables

Resets local, global and persistent variables. That is useful if you use a custom event/scene based In-Game UI and want to reset all variables like if the user starts a new game. Or if you have a puzzle/mini-game scene and want to reset all local variables for that scene to restart it.

 

Label

A Label is a marker, whose name is set by the user, that a scene can jump to. This is commonly used to call different outcomes in a single scene.

 

Jump to Label

Jump to Label is to move the scene progression to a label/marker you set.

 

Condition

This command allows users to create conditions to meet in order to execute a command.

The commands must be set below the condition command and tabbed like so:

 

If you want to add commands under a condition, it can be accomplished in multiple ways:

 

  1. If the Condition command is selected, if you press a new command, it will automatically added beneath it as tabbed.

  2. If you drag a command under a condition, it will appear as tabbed.

  3. You can press the Right Arrow () key to put a command under a Condition.

To remove a command from a Condition without deleting the commands, just press the Left Arrow() key.

 

Note: It is important to note that if a command is not tabbed inside a Condition, it is considered that the Condition ended and any tabbed commands after it is treated like a Comment.

 

Else

This command allows a condition to give a different outcome if its initial conditions aren't met.

This is useful if you have branching conditions. Such example scenario is:

 

Else If

This command allows the user to create another set of conditions if the initial requirements aren't met.

This is to avoid the previous condition to trigger if both conditions are triggered for any reason.

 

Check Switch

This command checks if a Switch is ON/OFF, similar to Condition, then jumps to a Label.

 

Check Number

This command checks if a Number Variable is at a certain value, similar to Condition, then jumps to a Label.

 

Check Text

This command checks if a Text Variable is at a certain value, similar to Condition, then jumps to a Label.

 

Loop

The commands set inside a Loop command run repeatedly. Multiple loops are also possible within loop processing.

The commands inside a Loop are executed infinitely. To disable the loop, you must use the event command Break Loop.

Note: Here is an example of how you can use a loop.

 

Break Loop

Stops a loop.

 

Start Timer

Start timer has no visual effect on screen but allows you to call a common event or to jump to a label if the timer runs out. All timers are bound to the current scene. So if you change to another scenes, all your timers are no longer valid.

 

Pause Timer

Pauses a timer immediately..

 

Resume Timer

Resumes a timer immediately..

 

Stop Timer

Stops a timer immediately..

 

Idle

Idle pauses the scene or common event processing, depending where the command is used. This is useful if you need certain commands to not play out for certain scenes.

For more information, you can read about it in our Tips and Tricks.

 

Script

A script is to call a command line that the user has set inside the command. This is intended for advanced users.