← Previous | Next →
hasFoughtPokemonBattle
Description
Checks if the character has previously fought against the NPC's trainer.
| Name |
Type |
Possibilities |
| hasFoughtPokemonBattle |
interaction |
2 |
Parameters
| # |
Name |
Type |
Mandatory |
Description |
Multiple |
|
|
|
|
|
|
Outputs
| # |
Description |
| 1 |
The character has fought against the NPC's trainer. |
| 2 |
The character has not fought against the NPC's trainer. |
Example
POKEMON
id example_pokemon_id
name bulbasaur
level 5
moves vine_whip
TRAINER
npc example_trainer_id
pokemon example_pokemon_id
NPC
name example_trainer_id
model a_m_m_eastsa_01
position -1020.72 4839.78 258.30 0.0
interaction
hasFoughtPokemonBattle
tell "You have already battled with me before!"
tell "We haven't battled yet. Prepare yourself!"
startPokemonBattle
behaviour
nothing