2018-10-27, 14:09:52
(This post was last modified: 2018-10-27, 15:00:01 by llllleeeeelllll.)
hi there, so i successfully made a working script that ev trains hp and defense but i dont know how to add a mount support
nvm fixed it now
function onPathAction()
if isPokemonUsable(1) then
if getMapName() == "Pokecenter Viridian" then
moveToMap("Viridian City")
elseif getMapName() == "Viridian City" then
moveToMap("Route 2")
elseif getMapName() == "Route 2" then
moveToMap("Route 2 Stop")
elseif getMapName() == "Route 2 Stop" then
moveToMap("Viridian Forest")
elseif getMapName() == "Viridian Forest" then
moveToGrass()
end
else
if getMapName() == "Viridian Forest" then
moveToMap("Route 2 Stop")
elseif getMapName() == "Route 2 Stop" then
moveToMap("Route 2")
elseif getMapName() == "Route 2" then
moveToMap("Viridian City")
elseif getMapName() == "Viridian City" then
moveToMap("Pokecenter Viridian")
elseif getMapName() == "Pokecenter Viridian" then
usePokecenter()
end
end
end
function onBattleAction()
if isWildBattle() and isOpponentShiny() then
if useItem("Ultra Ball") or useItem("Great Ball") or useItem("Pokeball") then
return
end
end
if getActivePokemonNumber() == 1 and
(isOpponentEffortValue("Defence") or isOpponentEffortValue("Health")) then
return attack() or run() or sendUsablePokemon() or sendAnyPokemon()
else
return run() or attack() or sendUsablePokemon() or sendAnyPokemon()
end
end
nvm fixed it now
