On Room First Enter

Added in v2.0.1.

Description

Fires when the first 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. ~onRoomEnter fires for the same player immediately after this trigger.

Examples

SealTheRoom:
  Skills:
  - skill{s=CloseDoors} @self ~onRoomFirstEnter

The first time any player enters the room, its mobs seal the doors.

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