# Ability System

The ability system is separated into 2 parts: abilities and ability effects.

Abilities are relatively simple and are mostly responsible for determining when an effect is able to be cast.

Effects are the part of the system that are responsible for performing actions, and can call other effects to chain together pieces of functionality and build complex spells from simple components.

Both abilities and ability effects make heavy use of class inheritance to maximize the re-use of common code and minimize any code duplication to ensure predictable and reliable behavior when chaining effects together to build spells and abilities.


---

# Agent Instructions: 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:

```
GET https://docs.anyrpg.org/architecture/ability-system.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
