> For the complete documentation index, see [llms.txt](https://lucidious89-tutorials.gitbook.io/deluxe-battle-kit-tutorial/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lucidious89-tutorials.gitbook.io/deluxe-battle-kit-tutorial/deluxe-battle-kit-for-v21.1/mid-battle-scripting/trigger-keys/triggers-wild-capture.md).

# Triggers: Wild Capture

These are keys which trigger upon the player throwing a Poke Ball in a wild battle.

* <mark style="background-color:purple;">**"BeforeCapture"**</mark>\
  Triggers when the player is chooses to throw a Poke Ball, but before the ball is actually thrown.<br>
* <mark style="background-color:purple;">**"AfterCapture"**</mark>\
  Triggers after the player threw a Poke Ball and it successfully captured the target Pokemon.<br>
* <mark style="background-color:purple;">**"FailedCapture"**</mark>\
  Triggers after the player threw a Poke Ball and it failed to capture the target Pokemon.

{% hint style="info" %}
Trigger Extensions: You may extend these keys with a species ID or a type ID to specify that they should only trigger when capturing a specific species, or species of a specific type. For example, <mark style="background-color:purple;">"AfterCapture\_PIKACHU"</mark> would trigger only when capturing a wild Pikachu, where <mark style="background-color:purple;">"FailedCapture\_ELECTRIC"</mark> would trigger only when you failed to capture any wild Electric-type.
{% endhint %}
