
Their form cannot be manually changed this way, as they will immediately change back. Some Pokémon species determine their form automatically depending on various factors.

0 is the default form as defined in the PBS file "pokemon.txt". The last option will clear a particular move from the Pokémon's list of first-known moves (it does nothing if it wasn't a first-known move). The second option takes all moves currently known by the Pokémon and registers those as its first-known moves (all other first-known moves are cleared). Registers a move as being a first-known move for the Pokémon (which it can relearn via the Move Relearner).

You will usually want to add/subtract amounts from this, rather than setting it to a specific new value. The possible stats (as mentioned in the square brackets) are as follows: Each stat should be a number between 0 and 252 inclusive. Setting cannot_store means the Pokémon cannot be put into Pokémon storage or the Day Care.

Puts restrictions on how the player can remove the Pokémon from their party/ownership. Note that these properties are currently unused (except beauty for Feebas' evolution). Each stat should be a number between 0 and 255 inclusive. Set the ability to nil to make the choice of ability be determined as normal (from the Pokémon's ability index, which by default is derived from its personal ID). Note that this only applies until the Pokémon's species or form changes, so this usually shouldn't be used. To set the Pokémon's ability to any existing ability at all, simply set its ability.

Use pkmn.ability_index = nil to make the choice of ability be determined by the Pokémon's personal ID. 0 is the first regular ability, 1 is the second regular ability, and 2+ are hidden abilities. To set the Pokémon's ability to one that is defined as available to its species, set its ability_index to the appropriate number. This page assumes that the Pokémon being edited is referred to as " pkmn".Īttributes that can be edited Attribute These will all return a Pokémon (if possible) and call it " pkmn". This can be done a variety of different ways depending on the circumstances. The first step is to find the Pokémon to edit.
