# Used in the form>0
Events.onWildPokemonCreate+=proc {|sender,e|
pokemon=e[0]
if $game_switches[XXX] # game switch number
#pokemon.hp=((pokemon.totalhp/2)-5).ceil
#pokemon.setAbility(2)
#pokemon.iv=[31,0,31,0,0,31]
#pokemon.ev=[252,0,252,0,0,252]
#pokemon.form=1
#pokemon.setNature(:RELAXED)
#pokemon.item=getConst(PBItems,:SITRUSBERRY)
for i in 0...4
pokemon.moves[i]=PBMove.new(getID(PBMoves,:OCTOLOCK)) if isConst?(pokemon.species,PBSpecies,:METAPOD)
end
#pokemon.pbLearnMove(:FEATHERDANCE)
if isConst?(pokemon.species,PBSpecies,:KYUREM)
pokemon.form=1
pokemon.form=2 if $game_switches[FATEFUL_ENCOUNTER_SWITCH]
#elsif isConst?(pokemon.species,PBSpecies,:KYOGRE)
# pokemon.form=1
# pokemon.item=getConst(PBItems,:BLUEORB)
elsif isConst?(pokemon.species,PBSpecies,:ABSOL)
pokemon.form=1
#pokemon.item=getConst(PBItems,:ULTRANECROZIUMZ2)
#else
end
pokemon.calcStats
end
}