On Waystone Teleport
Description
Fires after a player successfully teleports to a waystone — i.e. after waystoneTeleport completes, or after clicking an entry in the player menu.
This is the trigger you typically hook for post-teleport side effects: deducting Vault costs, applying cooldowns, playing FX at the destination, etc. (Pre-teleport gating belongs in the destination's TeleportConditions: block instead — see Costs, cooldowns, and effects.)
Variables
| Variable | Type | Description |
|---|---|---|
waystone |
string | The id of the destination waystone. |
waystone-source |
string | The id of the source waystone, if one was supplied to the teleport call. |
Examples
Charge 50g and apply a 60s cooldown after every waystone teleport:
WaystoneTeleportTax:
Skills:
- takeMoney{amount=50} @self ~onWaystoneTeleport
- setCooldown{id=waystone-tp;ticks=1200} @self ~onWaystoneTeleport
- sound{s=entity.enderman.teleport;v=1;p=1} @self ~onWaystoneTeleport
Different arrival FX per destination:
- skill{s=IronforgeArrival} @self ~onWaystoneTeleport ?strEquals{a=<skill.var.waystone>;b=IRONFORGE}
- skill{s=StormhavenArrival} @self ~onWaystoneTeleport ?strEquals{a=<skill.var.waystone>;b=STORMHAVEN}
Aliases
- onWaystoneTeleport