User Tools

Site Tools


global_event_scripts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
global_event_scripts [2021/10/25 18:05] justinglobal_event_scripts [2021/10/25 18:06] justin
Line 6: Line 6:
 ^Icon^Event Name^Description^ ^Icon^Event Name^Description^
 |{{:wiki:camera_rotate.png?nolink|}}|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.| |{{:wiki:camera_rotate.png?nolink|}}|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.|
-|{{:wiki:xp.png?nolink|}}|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]] who leveled up using the "selfvariable.|+|{{:wiki:xp.png?nolink|}}|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]] who leveled up using the **self** variable.|
 |{{:wiki:skull.png?nolink|}}|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, [[character|characters]] can be revived using the [[Revive Character]] function.| |{{:wiki:skull.png?nolink|}}|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, [[character|characters]] can be revived using the [[Revive Character]] function.|
-|{{:wiki:skull.png?nolink|}}|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. The amount by which their health changed will be stored in the **$amount** variable.|+|{{:wiki:skull.png?nolink|}}|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** variable. The amount by which their health changed will be stored in the **$amount** variable.|
 |{{:wiki:skull.png?nolink|}}|Character Enters a Tile| | |{{:wiki:skull.png?nolink|}}|Character Enters a Tile| |
 |{{:wiki:skull.png?nolink|}}|Character Stops on a Tile| | |{{:wiki:skull.png?nolink|}}|Character Stops on a Tile| |
global_event_scripts.txt · Last modified: 2022/12/13 21:43 by justin