2018-12-01, 08:22:27
name = "Leveling: Route 10"
author = "darkrai"
movesNotToForget = {} --add moves here
function onPathAction()
if isPokemonUsable(1) then
if getMapName() == "Pokecenter Route 10" then
moveToCell(9, 22)
elseif getMapName() == "Route 10" then
moveToRectangle(13, 10, 20, 11)
end
else
if getMapName() == "Route 10" then
moveToCell(18,4)
elseif getMapName() == "Pokecenter Route 10" then
usePokecenter()
end
end
end
function onBattleAction()
if isWildBattle() and (isOpponentShiny() or isAlreadyCaught() == false) then
if useItem("Pokeball") then
return
end
end
if getActivePokemonNumber() == 1 then
return attack() or sendUsablePokemon() or run() or sendAnyPokemon()
else
return run() or attack() or sendUsablePokemon() or sendAnyPokemon()
end
end
function onLearningMove(moveName, pokemonIndex)
forgetAnyMoveExcept(movesNotToForget)
end