Can Teleport To Waystone

Description

Composite check used by the waystoneTeleport mechanic and the menu. The player can teleport to the destination if all of the following hold:

  1. The destination is currently discovered for the player.
  2. If the destination has a Permission: set, the player has it.
  3. All of the destination's TeleportConditions: pass.
  4. (If from is supplied) the source and destination share at least one network.

Useful for showing/hiding menu icons, gating an NPC dialog option, etc., without duplicating the conditions.

Attributes

Attribute Aliases Description Default
waystone w, destination, to Id of the destination waystone Falls back to the unkeyed argument
from source, src Id of the source waystone (enables the network share check) (none, no network check)

Examples

NPC offers a teleport only if it's currently allowed:

NpcTeleportOption:
  Skills:
  - message{m="<yellow>I can send you to Ironforge."} @trigger ?canTeleportToWaystone{w=IRONFORGE}
  - message{m="<red>You haven't been to Ironforge yet."} @trigger ?!canTeleportToWaystone{w=IRONFORGE}
Updated Aug 19, 2026