← Previous | Next →
hasLostPokemonBattle
Description
Checks if the NPC's Pokémon trainer has lost a battle against the character's Pokémon trainer.
Name | Type | Possibilities |
hasLostPokemonBattle | interaction | 2 |
Parameters
# | Name | Type | Mandatory | Description | Multiple |
| | | | | |
Outputs
# | Description |
1 | The NPC's trainer has been defeated by the character's trainer. |
2 | The NPC's trainer has not been defeated by the character's trainer. |
Example
POKEMON
id example_pokemon_id
name bulbasaur
level 5
moves vine_whip
TRAINER
npc Rival
pokemon example_pokemon_id
NPC
name Rival
model a_m_m_eastsa_02
position -1020.72 4839.78 258.30 0.0
interaction
hasLostPokemonBattle
tell "You defeated my Pokémon!"
tell "I am still undefeated!"
behaviour
nothing