Triggers
Part of Mythic Mobs Integration.
These triggers fire on Mythic mobs inside a dungeon instance when the matching dungeon event occurs. They are referenced in a mob's Skills: list with a leading ~, just like Mythic Mobs' own triggers. Where a player is involved, that player is passed to the skill as <trigger>, is targetable with @trigger, and is also the mechanic's default target when no targeter is written. Click a trigger for its full details and examples.
Note: these triggers only load when Mythic Mobs is installed alongside Mythic Dungeons. Entries marked Procedural only require a generated (procedural) dungeon.
A note on naming. Mythic Mobs drops the first three characters of a trigger reference (the ~on) and matches the rest case insensitively, exactly as it does for its own triggers (~onAttack matches ATTACK). Write every trigger below in its ~onX form. Dropping the on does not work: Mythic Mobs would search for a truncated name, find nothing, and silently fall back to the default trigger, so the skill would fire on damage, attack, spawn, load, death and timer events instead. None of these triggers has a shorter working form.
Caster, target and origin. Each trigger is dispatched to every eligible Mythic mob separately. For each one, @self is that mob, @origin is that mob's own location, and @trigger is the player (where there is one). Dungeon lifecycle and player triggers reach every Mythic mob in the instance world; room triggers reach only the mobs inside the room; ~onSpectatorInteract reaches only the mob that was clicked.
One-world dungeons. When
Experimental.OneWorldDungeonsis enabled, all dungeon scope triggers reach every Mythic mob in the shared world, including mobs belonging to other parties' instances. Only the room triggers are limited to a single instance.
Dungeon lifecycle
| Trigger | Fires when | <trigger> |
Added |
|---|---|---|---|
~onDungeonStart |
The dungeon instance starts | none | v2.0.1 |
~onDungeonEnd |
The dungeon instance ends | none | v2.0.1 |
~onDungeonComplete |
A player finishes the dungeon | the finishing player | v2.0.1 |
~onDungeonStatusChange |
The Dungeon Status string changes | none | v2.0.1 |
~onDungeonDifficultyChange |
The dungeon difficulty changes | none | v2.0.1 |
Players
| Trigger | Fires when | <trigger> |
Added |
|---|---|---|---|
~onDungeonPlayerEnter |
A player enters the dungeon | the entering player | v2.0.1 |
~onDungeonLeave |
A player leaves the dungeon | the leaving player | v2.0.1 |
~onDungeonPlayerDeath |
A player dies in the dungeon | the dying player | v2.0.1 |
~onDungeonPlayerRespawn |
A player respawns in the dungeon | the respawning player | v2.0.1 |
~onDungeonCheckpoint |
A player activates a Checkpoint function | the checkpoint player | v2.0.1 |
~onSpectatorInteract |
A spectator right-clicks a mob | the spectating player | v2.0.1 |
Rooms (procedural only)
Each room trigger also attaches a set of room-* skill variables. See any room trigger page for the full list.
A room trigger reaches only the Mythic mobs standing inside the room, using the room's bounds grown by one block on the +X, +Y and +Z faces. Mobs elsewhere in the dungeon never see it. ~onRoomFirstEnter always fires immediately before ~onRoomEnter for the same player, and ~onRoomLeave always fires immediately before ~onRoomEmptied, so a mob configured with both gets both.
| Trigger | Fires when | <trigger> |
Added |
|---|---|---|---|
~onRoomEnter |
A player enters a room | the entering player | v2.0.1 |
~onRoomLeave |
A player leaves a room | the leaving player | v2.0.1 |
~onRoomFirstEnter |
The first player enters a room | the entering player | v2.0.1 |
~onRoomEmptied |
A room empties of players | the last player | v2.0.1 |