跳到主要内容

Dungeon Close

Dungeon Close

Action/command to close an active dungeon instance and teleport players out.

字段

字段类型默认值描述
dungeonInstanceRef<DungeonInstanceEntry>—Target dungeon instance
exitPointWorldLocation—Teleport location after closing
WorldLocation(6)
字段类型默认值描述
worldString——
xInt0—
yInt0—
zInt0—
yawFloat0—
pitchFloat0—
closeMessageVar<String>Closing dungeonMessage shown when the dungeon closes占位符颜色
TypeWriter 通用字段(criteria, modifiers, triggers)
字段类型默认值描述
criteriaList<Criteria>empty—
modifiersList<Modifier>empty—
triggersList<Ref<TriggerableEntry>>empty—

How to use it​

Ends the run of dungeonInstance that the triggering player is in, as an admin close. Players are teleported to exitPoint when its world is set, and to where they came from otherwise. onEnd fires for each member, the chests, NPCs and mobs of the run are removed, and the world is released. If the run is already ending, nothing happens twice.

To end a run because the dungeon was finished, use Dungeon Complete instead: it also records the completion and the best time and raises the completion event.