# Triggers: End of Battle

These are keys which trigger at the end of a battle.

* <mark style="background-color:purple;">**"BattleEnd"**</mark>\
  Triggers upon a battle ending, regardless of outcome.<br>
* <mark style="background-color:purple;">**"BattleEndWin"**</mark>\
  Triggers upon a battle ending where the player won.<br>
* <mark style="background-color:purple;">**"BattleEndLoss"**</mark>\
  Triggers upon a battle ending where the player lost.<br>
* <mark style="background-color:purple;">**"BattleEndDraw"**</mark>\
  Triggers upon a battle ending where it ended in a draw.<br>
* <mark style="background-color:purple;">**"BattleEndForfeit"**</mark>\
  Triggers upon a trainer battle ending where the player forfeited the match (Battle Tower-style battles only).<br>
* <mark style="background-color:purple;">**"BattleEndRun"**</mark>\
  Triggers upon a wild battle ending where the player chose to run.<br>
* <mark style="background-color:purple;">**"BattleEndFled"**</mark>\
  Triggers upon a wild battle ending where the wild Pokemon fled.<br>
* <mark style="background-color:purple;">**"BattleEndCapture"**</mark>\
  Triggers upon a wild battle ending where the player captured at least one Pokemon.

{% hint style="danger" %}
Trigger Extensions: These keys are not compatible with any trigger extensions.
{% endhint %}
