# 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 %}
