Hey guys, an important update to the Alternate Form Code. This allows you to
find alternate form Pokemon in the wild just like shinies. The rarity is up to you, but I suggest you make them a lot more common than shinies or else players may never see this feature in action.
The whole premise of alternate forms (or at least how I plan to use them in my game) are to show the slight differences between the same species of Pokémon. Rather than only changing colors like Shinies, "alt forms" can be used to change other features kind of like gender differences in D/P. For example, the Spotless Bulbasaur, the Rattleless Ekans, and the Tailless Poliwag.
But enough of that, here are the instructions.
First we must modify the alt code.
In PokeBattle_Pokemon after is shiny add the following
Â
def isAlt?
 return true if @alt==true
 return false if @alt==false
end
Â
def makeAlt
 a =@species
 if @alt==true
  @alt=false
 else
 filename=sprintf("Graphics/Battlers/%03da.png",a)
 @alt=true if FileTest.exist?(filename)
 end
 end
Â
In PokemonField search for:
def pbGenerateWildPokemon(species,level)
then, look down at the following line:
pokerus=(rand(8192)==0)
now add the following lines:
altform=(rand(XXX)==0)
if altform
genwildpoke.makeAlt
end
(
"XXX" is the chance that the pokemon will be the alternate version. a higher number means a low chance. For example, "0" means wild Pokemon with alternate forms will always be in that form.)
Enjoy! Ask me if you have any problems with it.