On Waystone Interact
Description
A reserved trigger MythicRPG registers but does not auto-fire. It exists so server admins can have a single canonical hook for "the player did the thing that means interact with a waystone" — whatever that means in your pack — without competing with the per-mob ~onInteract trigger that fires for every entity click.
Fire it yourself via the trigger mechanic when your interaction logic decides it's appropriate:
WaystoneOnInteract_IRONFORGE:
Skills:
- trigger{trigger=onWaystoneInteract} @self
Any variables you set with the variable mechanic before that line are visible to handlers on the trigger.
Examples
Use the trigger as a single hub for waystone-interaction sound effects, regardless of which waystone:
GlobalWaystoneInteractFx:
Skills:
- sound{s=block.amethyst_cluster.hit;v=1;p=1.4} @self ~onWaystoneInteract
Per-waystone interact handler that fires the global trigger:
WaystonePillarLit_IRONFORGE:
Parent: WaystonePillarLit
Skills:
- variable{var=waystone;value=IRONFORGE;scope=skill} @trigger ~onInteract
- trigger{trigger=onWaystoneInteract} @trigger ~onInteract
Aliases
- onWaystoneInteract