Pokémon SDK Wiki
Credits

Give a Pokemon

This page comes from the old Wiki. It's probably not up to date.

Give a Pokemon to the player (stored in Party)

Command

To give a Pokemon to the player, enter the following script command :

pokemon = add_pokemon(id, level, shiny)

The parameters are :

Example

Here are two examples where I give a level 5 Pikachu :

add_pokemon(25, 5)
add_pokemon(:pikachu, 5)

Give a Pokémon and rename it

Command

The command to give a Pokemon and rename it is the following :

pokemon = add_rename_pokemon(id, level, shiny, num_char)

The parameters are :

Example

Here's an example where I give a level 5 Pikachu that can be renamed with 8 characters:

add_rename_pokemon(:pikachu, 5, false, 8)

Give a specific Pokemon

Command

To give a specific Pokemon, you can use the following command :

pokemon = add_specific_pokemon(hash)

This method is based on the PFM::Pokemon.generate_from_hash method. The parameters are the same.

Example

Adding an Alolan Meowth :

ajouter_pokemon_param(id: 52, level: 5, form: 1)

Rename a Pokemon

Command

You can rename a Pokemon using a command. As you may have seen, I wrote "pokemon = " before the add commands. It's because those commands return the added Pokemon if they were successfully executed. You can then parse it as first paramter of the following function (or use its index in the party) :

rename_pokemon(poke_or_index, num_char)

The parameters are :

Examples

Rename the Alolan Meowth :

meowth = add_specific_pokemon(id: 52, level: 5, form: 1)
rename_pokemon(meowth, 10) if meowth

In this command if meowth prevents crashes.

Rename the second Pokemon in the Party :

renommer_pokemon(1)

Add an egg to the Party

Command

The command to add an egg to the party is :

add_egg(info)

The info parameter can be :

Examples

Add a Pichu egg :

add_egg(172)

or

add_egg(:pichu)

or

add_egg(id: 172, level: 1, form: 1)

Store a Pokemon in the Storage system

Command

To store a Pokemon directly in the PC, the following command can be used :

pokemon = store_pokemon(id, level, shiny)

The parameters are the same as for add_pokemon.