pokemonBattleStopped
Description
Triggered when a Pokémon battle stops. The event can track whether the player's trainer has won or lost, and optionally if the battle was against a specific NPC.
Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
| state | BattleState | Yes | The state of the battle, either 'win' or 'lose'. This determines if the achievement is triggered based on the outcome for the player's trainer. |
| againstNPC | NPCID | No | The identifier of the NPC the trainer is battling against. If specified, the achievement is only triggered if this NPC is involved in the battle. |
Example
pokemonBattleStopped 1 state=win againstNPC=TeamRocketGrunt