On Room Emptied

Added in v2.0.1.

Description

Fires when a procedural dungeon room empties of players. Fires on the Mythic mobs inside that room, with the last player as <trigger>. Sets the room variables listed below. room-empty-cause tells you what emptied the room.

Procedural only. ~onRoomLeave fires for the same player immediately before this trigger.

Examples

RoomReset:
  Skills:
  - skill{s=OpenDoors} @self ~onRoomEmptied
  - message{m="<skill.var.room-name> cleared (<skill.var.room-empty-cause>)."} @world ~onRoomEmptied

When the room empties, its mobs reopen the doors and log the room and the cause.

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