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 |
|---|---|---|---|
| battleType | BattleType | Yes | The type of the battle, either 'wild', 'boss', 'npc' or 'pvp'. |
| 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. |
| teams | number | No | ??? |
| actives | number | No | ??? |
| minTeam | number | No | ??? |
| maxTeam | number | No | ??? |
| monotype | PokemonTypeID | No | ??? |
Example
pokemonBattleStopped 1 state=win againstNPC=TeamRocketGrunt