> For the complete documentation index, see [llms.txt](https://black-horizon-studios.gitbook.io/emerald-ai-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://black-horizon-studios.gitbook.io/emerald-ai-wiki/emerald-components-required/combat-component.md).

# Combat Component

{% hint style="info" %}
**Note:** Only AI with the Aggressive Behavior Type will use the Combat Component. It is included as a required component to maximize flexibility. AI who are using the Passive or Coward Behavior Types can ignore this component.
{% endhint %}

<figure><img src="/files/YiuUM7t81Aw5oAu17VA3" alt=""><figcaption></figcaption></figure>

## Using the Combat Component

The Combat Component controls all the settings for an AI while in combat. This includes how many weapon types are used, the Combat Actions that will used, and the Ability Objects that will be used. &#x20;

{% hint style="success" %}
Here are the available tutorials and guides for the Combat Component.
{% endhint %}

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td></td><td> Assigning Combat Actions</td><td></td><td><a href="/files/V5cjAQEyO9hQqgGF7NhH">/files/V5cjAQEyO9hQqgGF7NhH</a></td><td><a href="/pages/ROcSqxoB2ElCImLG3lHp">/pages/ROcSqxoB2ElCImLG3lHp</a></td></tr><tr><td></td><td>  Assigning Ability Objects</td><td></td><td><a href="/files/pGWFMXFk5Ya9qabLkpc4">/files/pGWFMXFk5Ya9qabLkpc4</a></td><td><a href="/pages/D1M0WfDG6K7G9wBBzMNr">/pages/D1M0WfDG6K7G9wBBzMNr</a></td></tr><tr><td></td><td><p>      Assigning Attack    </p><p>          Transforms</p></td><td></td><td><a href="/files/NpaaBT9R9Vv7BvFvll9P">/files/NpaaBT9R9Vv7BvFvll9P</a></td><td><a href="/pages/2U7gQvLE26vnA1VzE48E">/pages/2U7gQvLE26vnA1VzE48E</a></td></tr><tr><td></td><td>   Weapon Type Amounts</td><td></td><td><a href="/files/1sYJLMhYRvxJFYc9qDyx">/files/1sYJLMhYRvxJFYc9qDyx</a></td><td><a href="/pages/8bIf64CyF4INfByqDbEo">/pages/8bIf64CyF4INfByqDbEo</a></td></tr></tbody></table>


---

# 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://black-horizon-studios.gitbook.io/emerald-ai-wiki/emerald-components-required/combat-component.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.
