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 revision
Previous revision
global_event_scripts [2020/02/05 09:12] justinglobal_event_scripts [2022/12/13 21:43] (current) justin
Line 5: Line 5:
  
 ^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.directionvariable.| +|{{: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]] that leveled up using the **self** built-in variable.| 
-|{{:wiki:skull.png?nolink|}}|Player is Defeated|Triggered when the main player character has been defeated, for example by a hazardous tile or from real-time enemy damage. If desired, 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:character_heart.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** built-in variable. The amount by which their health changed will be stored in the **$amount** local variable.| 
 +|{{:wiki:tile_enter.png?nolink|}}|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.| 
 +|{{:wiki:tile_stop.png?nolink|}}|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.| 
 +|{{:wiki:tile_exit.png?nolink|}}|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.| 
 +|{{:sword_hit.png?nolink|}}|Character is Damaged|Triggered when any [[character]] receives damage. The [[script]] assigned to this event can reference the [[character]] that was damaged using the **self** built-in variable. The [[character]] that dealt the damage can be referenced using the **initiator** built-in variable. The **$damage** local variable will contain the amount of damage that was dealt.| 
 +|{{:hand_add.png?nolink|}}|Object is Grabbed|Triggered when any [[character]] grabs a [[pushing|pushable object]]. The [[script]] assigned to this event can reference the [[object]] that was grabbed using the **self** built-in variable. The [[character]] that grabbed the [[object]] can be referenced using the **initiator** built-in variable.| 
 +|{{:hand_move.png?nolink|}}|Object is Pushed|Triggered when any [[character]] pushes a [[pushing|pushable object]]. The [[script]] assigned to this event can reference the [[object]] that was pushed using the **self** built-in variable. The [[character]] that pushed the [[object]] can be referenced using the **initiator** built-in variable. The **$previous_tile** and **$target_tile** local variables contain the [[tile]] from which the [[object]] was pushed and the new [[tile]] onto which the [[object]] is being pushed, respectively.| 
 +|{{:hand_delete.png?nolink|}}|Object is Released|Triggered when any [[character]] releases a [[pushing|pushable object]]. The [[script]] assigned to this event can reference the [[object]] that was released using the **self** built-in variable. The [[character]] that released the [[object]] can be referenced using the **initiator** built-in variable.| 
 +|{{:wiki:tool_items.png?nolink|}}|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.| 
 +|{{:chest.png?nolink|}}|Quest Given|Triggered when the player is given a [[quest]]. The [[script]] assigned to this event can reference the ID of the quest that was given using the **$quest_id** local variable.| 
 +|{{:chest_checkmark.png?nolink|}}|Quest Completed|Triggered when a [[quest]] has been completed. The [[script]] assigned to this event can reference the ID of the quest that was completed using the **$quest_id** local variable.| 
 +|{{:chest_delete.png?nolink|}}|Quest Failed|Triggered when a [[quest]] has been failed. The [[script]] assigned to this event can reference the ID of the quest that was failed using the **$quest_id** local variable.|
  
 ~~NOTOC~~ ~~NOTOC~~
global_event_scripts.1580922749.txt.gz · Last modified: 2020/02/05 09:12 by justin