
The remainder is the number of days remaining for it to be infectious.
#Pokemon sleep wiki code
The code pkmn.egg? will return whether pkmn is an egg (it is if " eggsteps" is a positive number). The number of steps until the egg hatches. When the Pokémon leaves battle while badly poisoned, this value is set to 0 and it becomes regular Poisoned (even in later battles). Badly poisoned - If the Pokémon is Poisoned and this is "1", the Pokémon is badly poisoned instead (which affects how much poison damage it takes in battle).This number is set when the Pokémon is made to fall asleep. Asleep - Is the number of rounds the Pokémon will remain asleep.The current maximum HP amount the Pokémon can haveĪll of these are calculated depending on the Pokémon's species, level, IVs, EVs and nature.0 is the default form, and Pokémon with form 0 are as defined in the PBS file "pokemon.txt". If defined, forces the Pokémon to be shiny (true) or not (false). If defined, forces the Pokémon's nature to be the value of this attribute. Depends on the attribute " natureflag" if defined, or the attribute " personalID" if not. It cannot be set to a gender that the Pokémon cannot have. If defined, forces the Pokémon to be male (0) or female (1). Depends on the attribute " genderflag" if defined, or the attribute " personalID" if not. Is either 0 (male), 1 (female) or 2 (genderless). 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). 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. Depends on the attribute " abilityflag" if defined, or the attribute " personalid" if not. If the Pokémon only has one type, then " type2" will be the same as " type1".

Depends on the first/second types as defined for the Pokémon's species in the PBS file "pokemon.txt" or "pokemonforms.txt". If blank, is the Pokémon's species name instead. $Trainer.partyis the first Pokémon in the player's party) - see Manipulating Pokémon for ways to refer to individual Pokémon. The term " pkmn" in the examples below should be replaced with the Pokémon to be modified (e.g. Together, these attributes define that specific Pokémon. This includes the properties an individual Pokémon has, along with other general information about them.Įach individual Pokémon in the game has a number of attributes. This page describes how Pokemon work in-game. For Pokémon before they're hatched, see Eggs. For adding, removing, counting and choosing Pokémon, see Manipulating Pokémon.
#Pokemon sleep wiki how to
For how to change a property of an individual Pokémon, see Editing a Pokémon.
