tasmania12
Mewtwo Master
- 57
- Posts
- 17
- Years
- Pallet Town
- Seen Nov 18, 2024
Spoiler:What I always do when I come across a problem is think about whether something similar has already been done.
I know, for instance, that Shellos and Gastrodon have two forms each, which vary depending on which map you're on. I also know that the scripts decide the form with a very simple calculation in PokemonMultipleForms. I further know that I can mess with simple calculations, for example, adding in a "rnd(3)" here and there.
There are many things I could do here, but for now I'll stick with something simple:
Code:
MultipleForms.register(:FAKEMON,{
"getFormOnCreation"=>proc{|pokemon|
next rnd(2)
}
})
This is the simplest you can get. When any Pokémon of the species Fakemon is generated (i.e. at the start of a wild or trainer battle), there is a 50% chance of it being either of its two forms. Remember that "rnd(2)" will pick a random integer between 0 and 1 inclusive (i.e. 0 or 1).
This could get more complicated. For example, I might want to have the forms be random on only some maps, while on other maps the form would always be the same. I might want one form to be twice as common as the other. I might want the form's rarity to depend on the species of the lead Pokémon in the player's party, or on whether the player is running/cycling, or on whether they're in a Bug Catching Contest at the time. I might want it to depend on the time of day. I might want it to depend on the number of badges/plot coupons the player has. All these things are possible.
And then I might want to make the forms different by more than appearance alone. Deoxys has different stats in its forms, Shaymin has different types and abilities, and that's just for starters. Maybe I want Fakemon Special Forme to be shiny 50% of the time. Maybe I want it to have a different moveset, or to always have a Hardy nature, or to always be female. Maybe the Special Forme can be found holding a different item to the Normal Forme. All these too can be done.
As an aside, making a single Nidoran species would involve nothing more than two forms, one per gender (50% chance of each), with each gender having a different moveset. Evolution depending on gender already exists in Essentials. Something you might want to think about...
I tried this and it comes up with an error, then I realized that I am a complete IDIOT!!!
I did something even simpler and copied UNOWN's multiple forms script, because that is exactly how I wanted it.
Thanks Anyways
and sorry if this has been answered, but does anyon know a script to show the different forms in the Pokedex?
Last edited: