![]() If nil, Pokémon from all generations are included. This option restricts the random selection to species from the corresponding generations. use_gen should be nil or an array of numbers from 1 to 8 (inclusive).If this option is true and you have evolved Pokémon in your whiteList option, they will be ignored. This option allows you to restrict the random selection to unevolved Pokémon ( true) or any Pokémon ( false). This option should be nil or an array of species names, as above. addList is a second black list and mainly exists for when you want blackList="suggested" AND you want other species to be excluded.Note: the black list trumps the white list. If "suggested", all legendary/mythical Pokémon will be excluded. This option allows you to exclude certain species from the random selection. blackList should be nil, "suggested" or an array of species names.If nil, all species not on the black list are fair game. This option allows you to restrict what species can be selected. whiteList should be nil or an array of species names, for example.Use_gen=nil)Each option is explained as follows: The first line in the block of code above is equivalent to the block of code pasted below. The second line gives the player this Pokémon at level 5. PbAddPokemon(pkmn, 5)The first line returns the symbolic name of a randomly selected unevolved Pokémon from generations 1-8 (including legendary/mythical Pokémon). The most basic way to use this script is to simply call pbChooseRandomPokemon, for example: Drag the folder you see into your project's main folder (where you have Game.exe), allowing it to merge with your existing Plugins folder.Choose which generation from which a Pokémon is drawn. ![]() Option to select only unevolved Pokémon.I've included an option for a default black list that contains all legendary/mythical Pokémon. Specify "black list" of Pokémon to be excluded.Specify "white list" of Pokémon from which to choose.As customisable as you want to make it.I thought it might be fun for the player to have a fourth, random option when picking their starter! This time, a means of giving the player a random Pokémon, mainly created with the starter selection event in mind, but it can work whenever the player is given a gift Pokémon. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |