— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
This is an old revision of the document!
The Global Event Scripts tab, located in your Game Configuration, allows you to attach scripts to certain in-game events. Whenever the event described occurs, the assigned script will be immediately triggered. Refer to the table below for descriptions of the events that are currently supported.
Icon | Event Name | Description |
---|---|---|
Camera Direction Changes | Triggered when the camera is rotated to a new cardinal direction (e.g. from NORTH to WEST), either by the player or a camera script. The script assigned to this event can check the camera's new direction using the camera.direction variable. | |
Player Character Levels Up | Triggered when either the main player character or a party member levels up. The script assigned to this event can reference the character that leveled up using the self built-in variable. | |
Player is Defeated | Triggered when the main player character has been defeated, for example from a hazardous tile or real-time enemy damage. If desired, characters can be revived using the Revive Character function. | |
Character's Health Changes | Triggered when the health of any character changes. The script assigned to this event can reference the character whose health changed using the self built-in variable. The amount by which their health changed will be stored in the $amount local variable. | |
Character Enters a Tile | Triggered when any character enters a tile. The script assigned to this event can reference the tile that was entered using the self built-in variable. The character that entered the tile can be referenced using the initiator built-in variable. | |
Character Stops on a Tile | Triggered when any character stops on a tile. The script assigned to this event can reference the tile that was stopped on using the self built-in variable. The character that stopped on the tile can be referenced using the initiator built-in variable. | |
Character Exits a Tile | Triggered when any character exits a tile. The script assigned to this event can reference the tile that was exited using the self built-in variable. The character that exited the tile can be referenced using the initiator built-in variable. | |
Character is Damaged | Triggered when any character receives damage. The script assigned to this event can reference the tile that was exited using the self built-in variable. The character that exited the tile can be referenced using the initiator built-in variable. | |
Object is Grabbed | Triggered when any character exits a tile. The script assigned to this event can reference the tile that was exited using the self built-in variable. The character that exited the tile can be referenced using the initiator built-in variable. | |
Object is Pushed | Triggered when any character exits a tile. The script assigned to this event can reference the tile that was exited using the self built-in variable. The character that exited the tile can be referenced using the initiator built-in variable. | |
Object is Released | Triggered when any character exits a tile. The script assigned to this event can reference the tile that was exited using the self built-in variable. The character that exited the tile can be referenced using the initiator built-in variable. | |
Tool Item Changes | Triggered when the player's active tool changes. The script assigned to this event can reference the ID of the newly active tool item using the $item_id local variable. This variable will be null if no tool is active. | |
Quest Given | Triggered when any character exits a tile. The script assigned to this event can reference the tile that was exited using the self built-in variable. The character that exited the tile can be referenced using the initiator built-in variable. | |
Quest Completed | Triggered when any character exits a tile. The script assigned to this event can reference the tile that was exited using the self built-in variable. The character that exited the tile can be referenced using the initiator built-in variable. | |
Quest Failed | Triggered when any character exits a tile. The script assigned to this event can reference the tile that was exited using the self built-in variable. The character that exited the tile can be referenced using the initiator built-in variable. |