Hello There, Guest! Login Register


help with mount support
#1
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
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 Big Grin
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)