- 32
- Posts
- 5
- Years
- Seen yesterday
Code:
def pbIntercambio
species=rand(PBSpecies.maxValue)+1
spe=rand(PBSpecies.maxValue)+1
solicitado=PBSpecies.getName(species)
doy=PBSpecies.getName(spe)
if Kernel.pbConfirmMessage(_INTL("Oye tienes algun {1} que me des por mi {2}",solicitado,doy))
pbChoosePokemon(1,2)
cancel = pbGet(1)
pok1 = $Trainer.pokemonParty[pbGet(1)]
pok2=pok1.species
pok3=pok1.level
if pok2!=species
Kernel.pbMessage(_INTL("No es el pokemon que busco"))
else
pbRemovePokemonAt(pbGet(1))
poke=pbAddPokemon(spe,pok3)
end
else
Kernel.pbMessage(_INTL("Esta bien vuelve luego"))
end
end
#Its the first version
Attachments
Last edited: