Hello There, Guest! Login Register


Help me with getpokemon name
#1
Hello guys i'm new and noob with code , please help me thank you  Blush

I'm training 6 pokemon and i want , when i'm back to center for heal.

My pikachu put to slot 1 again.

That is all i need , when i'm back to center bot will put pikachu to slot 1.

Thank you !! Heart
 
Reply
#2
So you're asking to do this?

if hasPokemonInTeam("Pikachu") then
    swapPokemonWithLeader("Pikachu")
end

Note, if you have more than one Pikachu in your team, it'll just swap the first Pikachu (lowest index number) it finds with the Pokemon in the 1st slot.
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)