Skip to content

← Previous | Next →


hasWonPokemonBattle

Description

Checks if the NPC's Pokémon trainer has won a battle against the character's Pokémon trainer.

Basic information

Name Type Possibilities
hasWonPokemonBattle interaction 2

Parameters

# Name Type Mandatory Description Multiple

Outputs

# Description
1 The NPC's trainer has defeated the character's trainer.
2 The NPC's trainer has not defeated 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 
    hasWonPokemonBattle 
      tell "You have been defeated by my Pokémon!" 
      tell "You still stand undefeated!" 

  behaviour 
    nothing