Skip to content

← Previous | Next →


hasPokemonLike

Description

Checks if the character's trainer has a certain number of Pokémon that match the specified criteria. Use '_' for any parameter you do not want to specify.

Basic information

Name Type Possibilities
hasPokemonLike interaction 2

Parameters

# Name Type Mandatory Description Multiple
1 quantity integer Yes The number of Pokémon that must match the criteria. No
2 species PokemonSpeciesID No Specifies the species of the Pokémon. Accepts any valid Pokémon species name or '_'. No
3 minLevel integer No Specifies the minimum level of the Pokémon. Accepts any positive integer representing a Pokémon level or '_'. No
4 maxLevel integer No Specifies the maximum level of the Pokémon. Accepts any positive integer representing a Pokémon level or '_'. No
5 ptype PokemonTypeID No Specifies the type of the Pokémon. Accepts any valid Pokémon type (e.g., 'Fire', 'Water') or '_'. No
6 sex string No Specifies the sex of the Pokémon. Accepts 'M' for Male, 'F' for Female, 'N' for neutral, or '_'. No
7 shiny boolean No Indicates if the Pokémon must be shiny. Accepts 'true', 'false', or '_'. No
8 item ItemID No Specifies the item the Pokémon must have equipped. Accepts any valid item name or '_'. No
9 nature PokemonNatureID No Specifies the nature of the Pokémon. Accepts any valid Pokémon nature or '_'. No
10 ability PokemonAbilityID No Specifies the ability the Pokémon must have. Accepts any valid Pokémon ability or '_'. No
11 move1 PokemonMoveID No Specifies the first move the Pokémon must know. Accepts any valid Pokémon move name or '_'. No
12 move2 PokemonMoveID No Specifies the second move the Pokémon must know. Accepts any valid Pokémon move name or '_'. No
13 move3 PokemonMoveID No Specifies the third move the Pokémon must know. Accepts any valid Pokémon move name or '_'. No
14 move4 PokemonMoveID No Specifies the fourth move the Pokémon must know. Accepts any valid Pokémon move name or '_'. No
15 IV_HP_min integer No Specifies the minimum IV for the HP stat. Accepts any integer between 0 and 31 or '_'. No
16 IV_HP_max integer No Specifies the maximum IV for the HP stat. Accepts any integer between 0 and 31 or '_'. No
17 IV_ATK_min integer No Specifies the minimum IV for the Attack stat. Accepts any integer between 0 and 31 or '_'. No
18 IV_ATK_max integer No Specifies the maximum IV for the Attack stat. Accepts any integer between 0 and 31 or '_'. No
19 IV_DEF_min integer No Specifies the minimum IV for the Defense stat. Accepts any integer between 0 and 31 or '_'. No
20 IV_DEF_max integer No Specifies the maximum IV for the Defense stat. Accepts any integer between 0 and 31 or '_'. No
21 IV_SPA_min integer No Specifies the minimum IV for the Special Attack stat. Accepts any integer between 0 and 31 or '_'. No
22 IV_SPA_max integer No Specifies the maximum IV for the Special Attack stat. Accepts any integer between 0 and 31 or '_'. No
23 IV_SPD_min integer No Specifies the minimum IV for the Special Defense stat. Accepts any integer between 0 and 31 or '_'. No
24 IV_SPD_max integer No Specifies the maximum IV for the Special Defense stat. Accepts any integer between 0 and 31 or '_'. No
25 IV_SPE_min integer No Specifies the minimum IV for the Speed stat. Accepts any integer between 0 and 31 or '_'. No
26 IV_SPE_max integer No Specifies the maximum IV for the Speed stat. Accepts any integer between 0 and 31 or '_'. No
27 EV_HP_min integer No Specifies the minimum EV for the HP stat. Accepts any integer between 0 and 252 or '_'. No
28 EV_HP_max integer No Specifies the maximum EV for the HP stat. Accepts any integer between 0 and 252 or '_'. No
29 EV_ATK_min integer No Specifies the minimum EV for the Attack stat. Accepts any integer between 0 and 252 or '_'. No
30 EV_ATK_max integer No Specifies the maximum EV for the Attack stat. Accepts any integer between 0 and 252 or '_'. No
31 EV_DEF_min integer No Specifies the minimum EV for the Defense stat. Accepts any integer between 0 and 252 or '_'. No
32 EV_DEF_max integer No Specifies the maximum EV for the Defense stat. Accepts any integer between 0 and 252 or '_'. No
33 EV_SPA_min integer No Specifies the minimum EV for the Special Attack stat. Accepts any integer between 0 and 252 or '_'. No
34 EV_SPA_max integer No Specifies the maximum EV for the Special Attack stat. Accepts any integer between 0 and 252 or '_'. No
35 EV_SPD_min integer No Specifies the minimum EV for the Special Defense stat. Accepts any integer between 0 and 252 or '_'. No
36 EV_SPD_max integer No Specifies the maximum EV for the Special Defense stat. Accepts any integer between 0 and 252 or '_'. No
37 EV_SPE_min integer No Specifies the minimum EV for the Speed stat. Accepts any integer between 0 and 252 or '_'. No
38 EV_SPE_max integer No Specifies the maximum EV for the Speed stat. Accepts any integer between 0 and 252 or '_'. No

Outputs

# Description
1 The character's trainer has the required Pokémon.
2 The character's trainer does not have the required Pokémon.

Example


  NPC 

  name Rival 
  model a_m_m_eastsa_02 
  position -1020.72 4839.78 258.30 0.0 

  interaction 
    tell "Checking if you have a Pokémon like this..." 
      hasPokemonLike 1 pikachu 10 _ _ M _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
        tell "You have a Pokémon like this." 
        tell "You don't have a Pokémon like this." 

  behaviour 
    nothing