![]() Sets the time at which the Pokémon hatched from an egg. Is used only if the Pokémon's obtain method is "egg received". Sets the ID of the map in which the Pokémon hatched from an egg. This takes into account modifiers such as the Soothe Bell and Luxury Ball. The second line of code will change the Pokémon's happiness as it would change if triggered by a particular event. This should be a number between 0 and 255 inclusive. ![]() To do this, use pbSeenForm(pkmn) afterwards. You will also need to record the new gender as seen, so that it will show up in the Pokédex. Use pkmn.gender = nil to remove the override and have the gender be determined by the Pokémon's personal ID. This cannot make a Pokémon a gender it cannot legally be. Sets the Pokémon's gender to male or female. Use pkmn.fused = nil to erase the fused Pokémon. pkmn2 is itself a Pokémon and can itself be edited. Sets the Pokémon which is fused with this Pokémon. It will also trigger any changes that happen when the Pokémon changes form, such as trying to learn a form-specific move for Rotom. Setting a Pokémon's form will also recalculate its stats and mark it as seen in the Pokédex. You can alter the code responsible for this automatic determination to not recalculate if the form is currently a particular number(s), allowing you to set the Pokémon's form to that number(s) this way. 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". 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |