View Single Post
  #2    
Old September 30th, 2012 (10:48 AM).
FL's Avatar
FL FL is offline
Pokémon Island Creator
 
Join Date: Sep 2010
Gender: Male
Posts: 1,595

I have this on my game. A script-only example:

Code:
# This change all Deoxys form in your party.
# You can use pbChoosePokemon(1,3) for individuals
# Put this script above main. Use by command:
# 'Kernel.pbMessage(_INTL("Something happened")) if changeForm(PBSpecies::DEOXYS,4)'
def changeForm(species,form_amount)
  changed=false
  if(pbHasSpecies?(species))
    for pokemon in $Trainer.party
      next if pokemon.egg?
      if pokemon.species==species
        pokemon.form==(form_amount-1) ? pokemon.form=0 : pokemon.form+=1
        changed=true
      end
    end
  end
  return changed
end

__________________
Reply With Quote