On Room Leave
Added in v2.0.1.
Description
Fires when a player leaves a procedural dungeon room. Fires on the Mythic mobs inside that room, with the leaving player as <trigger>. Sets the room variables listed below.
Procedural only.
Examples
RoomFarewell:
Skills:
- sound{s=block.wooden_door.close} @self ~onRoomLeave
Mobs in the room play a door-close sound when a player leaves it.
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 |