> For the complete documentation index, see [llms.txt](https://docs.benswap.cash/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.benswap.cash/features/pokeben/training/ability.md).

# 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;
```
