Opening Script Properties
From the Element Properties panel (V), click Script (or Block Script / Side Script for blocks).Configuration
Script Reference
The name of the script in the level’s script collection. You can:- Type the script name directly in the input field
- Click More Scripts to open the Script Editor in select mode
Script Tag
A string identifier for this specific element instance. Tags are used in Lua scripts to identify which entity triggered a hook or signal. Example: If you tag an enemy as"boss_01", your script can check self.tag == "boss_01" to apply boss-specific behavior.
Local Variables
Key-value pairs accessible from the script. These are stored asLuaLocalVariablesDefinitions on the element.
- Click New Variable to add a variable
- Enter a variable name and value
- Variables are accessible in Lua as
self.vars["variableName"]
Supported Element Types
Variable Management
Creating Variables
- Click New Variable in the Script Properties panel
- Enter a variable name (must be unique)
- Select the variable type (String, Integer, Float, Boolean)
- Set the initial value
- Click Accept
Editing Variables
- Click on a variable’s value to edit it
- Changes are applied immediately
Deleting Variables
- Click the remove button on a variable
- Confirm in the popup
- The variable is removed from the element
How Scripts Use Properties
In Lua scripts, element properties are accessed through theself object:
Script variables are per-element instance. Two enemies of the same template can have different variable values, allowing unique behavior for each instance.