#===============================================================================
# Giving Pokémon to the player (will send to storage if party is full)
#===============================================================================
def pbAddPokemonWithForm(pokemon,level=nil,form=0,seeform=true)
return if !pokemon || !$Trainer
if pbBoxesFull?
Kernel.pbMessage(_INTL("There's no more room for Pokémon!\1"))
Kernel.pbMessage(_INTL("The Pokémon Boxes are full and can't accept any more!"))
return false
end
if pokemon.is_a?(String) || pokemon.is_a?(Symbol)
pokemon = getID(PBSpecies,pokemon)
end
if pokemon.is_a?(Integer) && level.is_a?(Integer)
pokemon = PokeBattle_Pokemon.new(pokemon,level,$Trainer)
end
pokemon.form=form
speciesname = PBSpecies.getName(pokemon.species)
Kernel.pbMessage(_INTL("\\me[Pkmn get]{1} obtained {2}!\1",$Trainer.name,speciesname))
pbNicknameAndStore(pokemon)
pbSeenForm(pokemon) if seeform
return true
end