On Waystone State Change
Description
Fires whenever a player's state for a waystone changes — discovered, forgotten, set to ACTIVE, etc. Fires for every state transition; if you only want the "just discovered" case, use ~onWaystoneDiscover.
Variables
| Variable | Type | Description |
|---|---|---|
waystone |
string | The id of the waystone that changed. |
waystone-state |
string | The new state. One of UNDISCOVERED, DISCOVERED, ACTIVE. |
waystone-previous-state |
string | The previous state. |
Examples
Log every state change for auditing:
WaystoneStateAuditor:
Skills:
- command{c="logwaystone <skill.var.waystone> <skill.var.waystone-previous-state> -> <skill.var.waystone-state>"} @self ~onWaystoneStateChange
Fire a custom particle effect when a waystone becomes ACTIVE:
- skill{s=WaystoneActiveBindFx} @self ~onWaystoneStateChange ?strEquals{a=<skill.var.waystone-state>;b=ACTIVE}
Aliases
- onWaystoneStateChange