> For the complete documentation index, see [llms.txt](https://edseries-plugins.gitbook.io/p/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://edseries-plugins.gitbook.io/p/edautofighter/essential/target-modes.md).

# Target Modes

Target selection decides which zone mob the clone attacks:

| Mode       | Behaviour                |
| ---------- | ------------------------ |
| `RANDOM`   | Any alive mob            |
| `NEAREST`  | Closest mob to the clone |
| `ENHANCED` | Highest max-health mob   |
| `BOSS`     | Prefers boss mobs        |

{% hint style="info" %}
The **Target upgrade** must be unlocked before a player can change the mode. Until then the selector in the main menu shows as locked and clicks send the `target-locked` message.
{% endhint %}

Clicking the unlocked selector cycles to the next mode in the `modes` list (the `[af-target-cycle]` GUI action).

### Configuration

```yaml
target:
  default-mode: RANDOM
  modes: [RANDOM, NEAREST, ENHANCED, BOSS]
  mode-names:
    RANDOM: 'Random'
    NEAREST: 'Nearest'
    ENHANCED: 'Enhanced'
    BOSS: 'Boss'
  list-selected: ' &#5C92FB- > &f{mode} &#5C92FB<'
  list-unselected: '&#5C92FB- &7{mode}'
```

**`default-mode`**

* **Description:** Mode used by players who never changed theirs

**`modes`**

* **Description:** Which modes are enabled and the cycle order

**`mode-names`**

* **Description:** Display name shown for each mode (used by `{target_mode}`, `{target_list}` and messages)

**`list-selected`** / **`list-unselected`**

* **Description:** Format for each line of the `{target_list}` GUI placeholder; `{mode}` is replaced with the mode's display name. The active mode uses `list-selected`
