- For how to define a Pokémon species, see Defining a species.
- For how to change a property of an individual Pokémon, see Editing a Pokémon.
- For adding, removing, counting and choosing Pokémon, see Manipulating Pokémon.
- For Pokémon before they're hatched, see Eggs.
This page describes how Pokémon work in-game. This includes the properties an individual Pokémon has, along with other general information about them.
A Pokémon's attributes
Each individual Pokémon in the game has a number of attributes. Together, these attributes define that specific Pokémon.
The term "
pkmn" in the examples below should be replaced with the Pokémon to be modified (e.g.
$Trainer.party is the first Pokémon in the player's party) - see Manipulating Pokémon for ways to refer to individual Pokémon.
| ||The Pokemon's species.|
| ||The Pokemon's nickname. If blank, is the Pokémon's species name instead.|
| || The Pokémon's current level. Depends on the attribute "|
| || The Pokémon's Experience Points. The attribute "|
| || The Pokemon's first and second types. Depends on the first/second types as defined for the Pokémon's species in the PBS file "pokemon.txt" or "pokemonforms.txt".
If the Pokémon only has one type, then "
| || The ID number of the Pokemon's ability. Depends on the attribute "|
| ||If defined, forces the Pokémon's ability to be the first natural (0), second natural (1) or hidden (2) ability available to its species. It is not possible to give the Pokémon any ability other than those defined in the PBS file "pokemon.txt" for its species (or "pokemonforms.txt" for its species and form).|
| || The Pokémon's gender. Is either 0 (male), 1 (female) or 2 (genderless). Depends on the attribute "|
| ||If defined, forces the Pokémon to be male (0) or female (1). It cannot be set to a gender that the Pokémon cannot have.|
| || The Pokémon's nature. Depends on the attribute "|
| ||If defined, forces the Pokémon's nature to be the value of this attribute.|
| || Whether the Pokémon is shiny or not. Depends on the attribute "|
| ||If defined, forces the Pokémon to be shiny (true) or not (false).|
| ||The Pokémon's form. 0 is the default form, and Pokémon with form 0 are as defined in the PBS file "pokemon.txt". See Forms for more information.|
| ||The Pokémon's current HP.|
| || In order:
All of these are calculated depending on the Pokémon's species, level, IVs, EVs and nature.
| ||The Pokémon's happiness. Is a number between 0 and 255 inclusive.|
| || The Pokémon's status. One of:
| || Is 0, except if the Pokémon is:
| || Used for Pokémon eggs. The number of steps until the egg hatches. If it is 0, it is a Pokémon. The code |
This is the only way in which eggs are different to Pokémon.
| || An array of 4 move slots that the Pokémon has. Each move slot has the following attributes:
| ||A number representing the type of Poké Ball that the Pokémon is in. The list of Poké Balls and their corresponding numbers is in the script section PItem_PokeBalls. Is 0 by default, i.e. a regular Poké Ball.|
| || The Pokémon's held item. Is the internal number of that item, which is the same as |
| || If the Pokémon's item is not a mail item, this attribute is |
| || An array of the Effort Values this Pokémon has, in the order:
These can each be between 0 and 255 inclusive. They are all 0 when the Pokémon is created.
| || An array of the Individual Values this Pokémon has, in the order:
These can each be between 0 and 31 inclusive. They are randomly set when the Pokémon is created.
| || Is a number between 0 and 255 which describes the Pokérus infection state of this Pokémon. It contains both the strain of the virus and the remaining infection time in days. As a rough explanation:
| || Another Pokémon which has been fused with this Pokémon (or |
| || The Pokémon's contest stats.
They currently do nothing in Essentials (except for "
| ||The Pokémon's markings. The binary version of this number indicates which markings the Pokémon has.|
| ||An array of the Pokémon's ribbons. Each element of the array is either TRUE (has that particular ribbon) or FALSE (doesn't have that particular ribbon).|
| || The Pokémon's personal ID number. A 32-bit number (i.e. a number between 0 and 4,294,967,295), which is randomly generated when the Pokémon is created. The last two octets of the binary version of the ID number (a number between 0 and 65535) is displayed in a Pokémon summary screen, and is given by |
| || The Pokémon's original trainer's ID number (a 32-bit number), name and gender respectively. The last two octets of the binary version of the ID number (a number between 0 and 65535) is displayed in a Pokémon summary screen. "|
| || The method, map ID and Level at which the Pokémon was obtained, and the map the Pokémon hatched from an egg on. "|
The first three of these attributes are set when the Pokémon is generated, and again (except for "
| || If this is a string of text, that text will be shown instead of the name of the "|
Any egg obtained from the Day Care will have this set to "Day-Care Couple".
| || The Pokémon's language. Is one of the following:
Pokémon that the player catches will have the same language as the player.
There are also two functions that affect Pokémon, as follows:
|Function||What it does|
| ||Fully heals the Pokémon. Restores the HP to full, the status to normal, and the PP of all moves to full.|
| || Recalculates the Pokémon's stats (total HP, Attack, Defense, etc.).
Used when creating a Pokémon or egg, when an egg hatches, when a Pokémon's level/species/nature/gender/shininess changes, when an EV-modifying item is used, and when a Pokémon's form changes.
The level limit is defined in the script section Settings, and is a variable called
MAXLEVEL (default 100).
In the script section PBExperience is a large array containing all the "Exp per level" numbers for each growth rate. These numbers only go up to level 100. If the level limit is increased, then the "Exp per level" numbers for levels above 100 are calculated by formulae instead of being looked up in the array. These calculations are written in
def self.pbGetExpInternal. There are different calculations depending on which growth rate the Pokémon's species has.
Pokérus is a virus that can rarely be contracted by a Pokémon. While it is infected, a Pokémon will receive more EVs from battle than usual. A Pokémon will be infectious for a while after contracting Pokérus, but will still receive the effect of it forever after.
The attribute which records a Pokémon's Pokérus is described above. It works the same as in the official games.
Only wild Pokémon or eggs from the Day Care may be generated with Pokérus. The chance of this is defined in the script section Settings, and is a variable called
POKERUSCHANCE (default 3).
After any battle, an uninfected Pokémon in the player's party will have a 33% chance of catching Pokérus from each infected Pokémon next to it.