Zum Hauptinhalt springen

On Dungeon Room Leave

When a player leaves a dungeon room

Fires every time a member of a run leaves a room, one event per room left. Unlike the onLeave triggers of the room, it is not limited by leaveOnce. It also fires when the player leaves the run (or its world) from that room.

Felder

FeldTypStandardBeschreibung
dungeonInstanceRef<DungeonInstanceEntry>—Only runs of this dungeon instance trigger the event. Empty = every dungeon.
roomRef<DungeonRoomEntry>—Only this room triggers the event. Empty = every room. The event fires at EVERY exit from the room, even when the room's leaveOnce already spent its own onLeave triggers: the event observes, leaveOnce only limits what the room itself runs. It also fires when the player leaves the run or its world from that room. The context keys of this event (run, seed, room, template, difficulty, position) are filled for the rooms of a GENERATED dungeon only: the triggers fired for a room of a fixed dungeon receive none of them.
roomTemplateRef<DungeonRoomTemplateEntry>—Generated dungeons: only the rooms made from this room template trigger the event. Empty = every room. A room of a generated dungeon is never matched by the Room field above; a template here never matches a room of a fixed dungeon. The context carries the run, the seed, the room, the template, the difficulty and the position.
Gemeinsame TypeWriter-Felder (triggers)
FeldTypStandardBeschreibung
triggersList<Ref<TriggerableEntry>>empty—

How to use it​

Fires at every exit of a member from a room, including when the player leaves the run or its world from that room. It observes: the room's leaveOnce limits only what the room itself runs. Filters and context keys work as in When a player enters a room.