# Ability

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

In order for a PokéBen to learn a new ability, you need to have an ability scroll and the PokéBen has to have the same type as the new ability.

### Ability Slots

Each PokéBen has 4 ability slots by default and can potentially expanded to up to 10 slots using certain items. When attempting to learn, a PokéBen has a chance to learn the new ability in any of its slots, replacing the previous ability on that slot. And the learning also has a chance to fail.

### Catalysts

You can add EBEN as catalysts on any of the open slots of your PokéBen to increase the chance for the new ability to be learned on.

*100% of the EBEN cost used as catalysts is burned.*

### Calculations

```
const base = 25;
const failure = base;
const slot1 = base + Math.sqrt(catalystsOnSlot1);
...
const slotN = base + Math.sqrt(catalystsOnSlotN);
const total = failure + slot1 + ...slotN;

const chanceOfFailure = failure/total;
const chanceSlot1 = slot1/total;
...
const chanceSlotN = slotN/total;
```


---

# 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.benswap.cash/features/pokeben/training/ability.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.
