On Room Enter

Added in v2.0.1.

Description

Fires when a player enters a procedural dungeon room. Fires on the Mythic mobs inside that room, with the entering player as <trigger>. Sets the room variables listed below.

Procedural only.

Examples

RoomAmbush:
  Skills:
  - message{m="Welcome to <skill.var.room-name>, <trigger.name>."} @trigger ~onRoomEnter

Mobs in the room greet the entering player and reference the room name variable.

Variables

Variable Value
room-id The room's UUID as a string
room-name The room template name (its source namespace)
room-dungeon The dungeon world name
room-player-count Player count in the room after the transition
room-previous-player-count Player count in the room before the transition
room-last-player-name Name of the last player associated with the room, or empty
room-last-player-uuid UUID of the last player associated with the room, or empty
room-empty-cause What caused this transition: MOVE, TELEPORT, WORLD_CHANGE, QUIT or DEATH
Updated Aug 19, 2026