![]() "Shuckie" is the Pokémon's nickname (optional). This example gives the player a Level 20 Shuckle. ![]() This method can only add a Pokémon to the player's party (the Pokémon cannot be sent to Pokémon storage if their party is full). To give the player a gift Pokémon, use the following script: It is also different to finding a Pokémon in an item ball, as that would make the player its original owner and would use pbAddToParty as described above. Obtaining a gift Pokémon is not the same as trading, as the player doesn't have to swap one of their Pokémon for the gift Pokémon. See Editing a Pokémon for how it can be modified.Ī gift Pokémon is one which originally belonged to an NPC rather than the player, and is thus a foreign Pokémon once the player has it (foreign Pokémon gain Exp faster, can disobey the player's orders depending on its level, and cannot change its nickname). This allows you to modify the Pokémon before giving it to the player. This means it can be used as the statement in a Conditional Branch, Branch: Script: pbAddPokemon(:EEVEE, Pokémon was Sorry, you have no Branch Conditional Branch allows for additional messages, such as "I hope you treat Eevee well" or "Oh, that's too bad.".Īlternatively, you can define a Pokémon beforehand, and then add it using the same methods above, like so: However, since this method always adds the egg to the end of the party, $player.last_party will be the egg, so you will be able to modify it after adding it instead of before.Īll five methods above will return TRUE if the Pokémon/egg was added, and FALSE if it was not. Its nickname will be changed to "Egg" and the number of steps required for it to hatch will be reset. Instead of giving this method a species, you can instead pre-generate a Pokémon and pass that as this method's argument instead. It does not display any messages at all and does not allow nicknaming. Same as pbAddToParty, except it does not display any messages at all and does not allow nicknaming.Īdds an egg to the player's party (if there is a space). However, since this method always adds the Pokémon to the end of the party, $player.last_party will be the Pokémon, so you will be able to modify it after adding it instead of before. Instead of giving this method a species and level, you can instead pre-generate a Pokémon and pass that as this method's argument instead. If the player's party is full, this function will return a message saying that there is no space. Same as pbAddPokemon, except it does not display any messages at all and does not allow nicknaming.Īdds the Pokémon to the player's party (if there is a space). When it has been given, a message will say the player has received it, and then the player will be allowed to nickname it. If there is no possible place for the Pokémon to go, this function will return a message saying that there is no space. ![]() If the player's party is full, the Pokémon is stored in the PC instead. These are as follows:Īdds the Pokémon to the player's party (if there is a space). There are four ways to easily give the player a Pokémon (and one way to give them an egg), all of which will treat the Pokémon as originally belonging to the player.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |