> For the complete documentation index, see [llms.txt](https://xgine.gitbook.io/xgine-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xgine.gitbook.io/xgine-docs/skills-and-automation/attack-skills.md).

# Attack Skills

Create intelligent skill rotations that adapt to combat situations! Configure up to **6 attack skills** with individual conditions for optimal damage output.

***

## ⚙️ Skill Configuration

Each attack skill slot includes:

| Setting      | Description               |
| ------------ | ------------------------- |
| **Enabled**  | Toggle skill on/off       |
| **Key**      | Hotkey for the skill      |
| **Delay**    | Cooldown after skill use  |
| **Priority** | Order of evaluation (1-6) |

***

## 🎛️ Skill Conditions

Make your skills smart by adding conditions!

### 💙 SP Condition

Only use skill when you have enough SP:

| Option      | When Skill Activates             |
| ----------- | -------------------------------- |
| **None**    | Always (no SP check)             |
| **≥ Value** | When SP is at or above threshold |

### 👹 Mob Count Condition

Trigger skills based on nearby monsters:

| Option      | When Skill Activates              |
| ----------- | --------------------------------- |
| **None**    | Always (no mob count check)       |
| **≥ Value** | When surrounded by X or more mobs |
| **≤ Value** | When facing X or fewer mobs       |

{% hint style="success" %}
**Pro Tip:** Use this for AoE skills! Set "≥ 3" to only use Bowling Bash when there are 3+ monsters nearby.
{% endhint %}

### 📏 Distance Condition

Trigger based on target distance:

| Option      | When Skill Activates        |
| ----------- | --------------------------- |
| **None**    | Always (no distance check)  |
| **≤ Value** | When target is within range |

### 🎯 Monster ID Filter

Target specific monsters with certain skills:

| Monster IDs Field | Behavior                                                  |
| ----------------- | --------------------------------------------------------- |
| **Empty**         | Skill matches **any** monster                             |
| **Has IDs**       | Skill only triggers when target monster ID is in the list |

**How to configure:**

1. Enter monster IDs in the text field (any skill slot 1-6)
2. Separate multiple IDs with comma, semicolon, or space (e.g., `1002, 1063`)
3. Leave empty to match all monsters

{% hint style="info" %}
Great for using special skills on MVPs or element-specific attacks on certain monsters.
{% endhint %}

***

## 🔄 How Skill Selection Works

1. **Evaluate** — Check all enabled skills
2. **Filter** — Find skills matching current conditions
3. **Select** — Choose the best matching skill
4. **Execute** — Use the skill and apply delay

***

## 🎮 Attack Modes Explained

| Mode       | Name               | Skill Matching                          | Fallback          |
| ---------- | ------------------ | --------------------------------------- | ----------------- |
| **Mode 1** | Normal Attack Only | No skills used                          | Normal attack     |
| **Mode 2** | Normal + Skill     | All skills 1-6 checked                  | **Normal attack** |
| **Mode 3** | Skill Only         | Skills 2-6 checked, Skill 1 is fallback | **Skill 1**       |

### Mode 2 vs Mode 3

| Scenario             | Mode 2 Result      | Mode 3 Result          |
| -------------------- | ------------------ | ---------------------- |
| Skill matches target | Uses matched skill | Uses matched skill     |
| No skill matches     | **Normal attack**  | **Skill 1** (fallback) |

***

## 📋 Example Configurations

### ⚔️ Lord Knight (Bowling Bash Build)

| Skill        | Key | Condition | Purpose       |
| ------------ | --- | --------- | ------------- |
| Bowling Bash | F1  | Mobs ≥ 3  | AoE damage    |
| Bash         | F2  | Mobs ≤ 2  | Single target |

### ✨ High Priest (Magnus Build)

| Skill             | Key | Condition | Purpose       |
| ----------------- | --- | --------- | ------------- |
| Magnus Exorcismus | F1  | Mobs ≥ 5  | Large groups  |
| Holy Light        | F2  | SP ≥ 50%  | Single target |

### 🏹 Sniper (Hybrid Build)

| Skill          | Key | Condition     | Purpose      |
| -------------- | --- | ------------- | ------------ |
| Arrow Storm    | F1  | Mobs ≥ 4      | AoE clear    |
| Double Strafe  | F2  | Distance ≤ 10 | Main DPS     |
| Falcon Assault | F3  | SP ≥ 30%      | Burst damage |

***

## 💡 Tips for Optimal Setup

<details>

<summary><strong>Building Effective Skill Rotations</strong></summary>

1. **Prioritize AoE** — Put AoE skills with mob count conditions first
2. **SP Management** — Add SP conditions to expensive skills
3. **Fallback Skills** — Always have a low-cost skill as backup
4. **Test Your Setup** — Verify conditions trigger correctly

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://xgine.gitbook.io/xgine-docs/skills-and-automation/attack-skills.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
