> ## Documentation Index
> Fetch the complete documentation index at: https://docs.borntocraftstudio.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Mythic Facts

> Check various states and counts of MythicMobs.

Mythic Facts allow you to query the state of MythicMobs in your world. You can use these as conditions for actions, dialogues, or quest progress.

## Available Facts

### Mob Count

Check the number of active MythicMobs of a specific type.

| Key       | Type     | Description                            |
| :-------- | :------- | :------------------------------------- |
| `mobName` | `String` | The internal name of the mob to count. |

**Example:**

```yaml theme={null}
type: mythic_mob_count_fact
mobName: SkeletalGuard
```

### Mob Level

Retrieve the level of a MythicMob.

```yaml theme={null}
type: mythicmob_level
```

### Mob Faction

Check the faction of a MythicMob.

```yaml theme={null}
type: mythicmob_faction
faction: Undead
```

### Mob Stance

Check the current stance of a MythicMob.

```yaml theme={null}
type: mythicmob_stance
stance: Defensive
```

## Usage Examples

### Boss Presence

Only show a "Retreat" dialogue if a boss exists in the world.

```yaml theme={null}
id: boss_check
type: mythic_mob_count_fact
mobName: MegaDragon
triggers:
  - if: ">= 1"
    run: start_retreat_dialogue
```
