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
Last revisionBoth sides next revision
global_event_scripts [2022/12/13 21:09] justinglobal_event_scripts [2022/12/13 21:09] justin
Line 14: Line 14:
 |{{: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.| |{{: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_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_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.| |{{: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.| |{{: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.|
global_event_scripts.txt · Last modified: 2022/12/13 21:43 by justin