Hello There, Guest! Login Register


avoid some pokemon
#1
Hello, I would like to know how to add in my script, that I leave combat when I touch a pokemon, for example if I am raising a poke with water skills and Quagsire leaves, that leaves the combat and looks for another pokemon or use a particular skill such as Crunch or Bite
 
Reply
#2
if isWildBattle() and getOpponentName() == "Poke1" or getOpponentName() == "Poke2" or getOpponentName() == "Poke3") then -- Pokes you'd like to fight
return attack() or run() or sendAnyPokemon()
else
return run() or sendAnyPokemon()
end

Or if you want to use particular move instead of attack use 
useMove("Crunch") -- Replace with move name
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)