@@ -2,134 +2,38 @@ _Part of [Mythic Mobs Integration](Mythic-Mobs-Integration)._
Dungeon Conditions can be used in any Mythic skill, condition list, or targeter filter. They evaluate against the dungeon instance that contains the caster (or the target, where noted).
#### Dungeon Alive Count `(v2.0.1)`
`- dungeonalivecount{count=2;op=>=}`
Compares the number of *living* (non-spectating) players in the caster's dungeon against a threshold.
**Aliases:**
-`dungeonalivecount`
-`dalivecount`
**Arguments:**
-**count | c | amount | a** :: The threshold to compare against. Default `0`.
-**op | operator** :: One of `>=`, `>`, `<=`, `<`, `==`, `!=`. Default `>=`.
#### Dungeon Depth `(v2.0.1)`
`- dungeondepth{depth=3;op=>=}`
*ONLY WORKS IN PROCEDURAL DUNGEONS!* Compares the depth (distance from the start room) of the caster's current room against a threshold.
**Aliases:**
-`dungeondepth`
-`roomdepth`
**Arguments:**
-**depth | d** :: The threshold depth. Default `1`.
Checks if the target player is on access cooldown for the specified dungeon. (Returns `true` if they are on cooldown.)
**Aliases:**
-`dungeoncooldown`
-`hasdungeoncooldown`
**Arguments:**
-**dungeon | d** :: The name of the dungeon to check the cooldown of.
#### Has Finished Dungeon
`- dungeonfinished{d=Dungeon Name}`
Checks if the target player has completed the specified dungeon before.
**Aliases:**
-`dungeonfinished`
-`finisheddungeon`
**Arguments:**
-**dungeon | d** :: The name of the dungeon the player must have completed.
#### In Room `(v2.0.1)`
`- inroom{room=BossRoom}`
Checks if the target is inside the bounds of a room with the given source namespace.
**Aliases:**
-`inroom`
-`inroomnamed`
**Arguments:**
-**room | r | name | n** :: The room namespace (the room's source map name).
#### In Same Room `(v2.0.0)`
`- insameroom`
*ONLY WORKS IN PROCEDURAL DUNGEONS!* Checks if the target entity is in the same room as the casting entity.
*NOTE: If the entity was spawned by the dungeon, this checks based on the room that spawned the casting entity, not the entity's current room!*
**Aliases:**
-`insameroom`
-`sameroom`
-`isr`
#### Is In Dungeon
`- isindungeon`
Checks if the target is currently in any dungeon instance.
**Aliases:**
-`isindungeon`
-`indungeon`
-`isd`
#### Shares Dungeon Party
`- sharesparty`
Checks if the target entity (including players) is in the same dungeon party as the caster. Also respects other mobs summoned by those players.
**Aliases:**
-`sharesparty`
-`dungeonparty`
| Condition | Description | Added |
| --- | --- | --- |
| `dungeonalivecount{count=N;op=>=}` | Compares the number of *living* (non-spectating) players in the caster's dungeon against a threshold. Aliases: `dalivecount`. | `(v2.0.1)` |
| `dungeondepth{depth=N;op=>=}` | *Procedural dungeons only.* Compares the depth (distance from the start room) of the caster's current room against a threshold. Aliases: `roomdepth`. | `(v2.0.1)` |
| `dungeondifficulty{d=difficultylevel}` | Checks if the dungeon at the target has its difficulty set to the specified value. Aliases: `dungeondifficultylevel`. | `(v1.3.1)` |
| `dungeonelapsedtime{time=N;op=>=}` | Compares the elapsed dungeon time (in seconds) against a threshold. Aliases: `dungeonelapsed`. | `(v2.0.1)` |
| `dungeonis{dungeon=MyDungeon}` | Checks if the target is currently in a dungeon with the specified world name. Aliases: `isindungeonnamed`. | `(v2.0.1)` |
| `dungeonisfinished` | Checks if the caster's dungeon instance has been marked as finished. Aliases: `disfinished`. | `(v2.0.1)` |
| `dungeonisstarted` | Checks if the caster's dungeon instance has been started. Aliases: `disstarted`. | `(v2.0.1)` |
| `dungeonmobcount{count=N;op=>=;mob=X}` | Compares the number of Mythic mobs alive in the caster's dungeon against a threshold. Optional `mob=` filter restricts to one internal name. Aliases: `dmobcount`. | `(v2.0.1)` |
| `dungeonplayercount{count=N;op=>=}` | Compares the total player count in the caster's dungeon against a threshold. Aliases: `dpcount`. | `(v2.0.1)` |
| `dungeonspectating` | True when the target is a player who is currently spectating in a dungeon. Aliases: `disspectating`. | `(v2.0.1)` |
| `dungeontimeleft{time=N;op=<=}` | Compares the remaining dungeon time (in seconds) against a threshold. Always false on dungeons with no time limit. Aliases: `dungeonremaining`. | `(v2.0.1)` |
| `dungeoncooldown{d=Dungeon Name}` | Checks if the target player is on access cooldown for the specified dungeon. Aliases: `hasdungeoncooldown`. | |
| `dungeonfinished{d=Dungeon Name}` | Checks if the target player has completed the specified dungeon before. Aliases: `finisheddungeon`. | |
| `inroom{room=BossRoom}` | Checks if the target is inside the bounds of a room with the given source namespace. Aliases: `inroomnamed`. | `(v2.0.1)` |
| `insameroom` | *Procedural dungeons only.* Checks if the target entity is in the same room as the casting entity. If the entity was spawned by the dungeon, this checks based on the room that spawned it. Aliases: `sameroom`, `isr`. | `(v2.0.0)` |
| `isindungeon` | Checks if the target is currently in any dungeon instance. Aliases: `indungeon`, `isd`. | |
| `partyleader` | True when the target is the leader of their dungeon party. Returns false when the target is not in a party. Aliases: `isdungeonleader`. | `(v2.0.1)` |
| `sharesparty` | Checks if the target entity (including players) is in the same dungeon party as the caster. Also respects other mobs summoned by those players. Aliases: `dungeonparty`. | |
### Argument reference
For conditions with a `count` / `time` / `depth` threshold and an `op` comparator, the supported operator values are:
| Operator | Meaning |
| --- | --- |
| `>=` | greater than or equal to *(default for most)* |
| `>` | strictly greater than |
| `<=` | less than or equal to *(default for `dungeontimeleft`)* |