Posts: 11
Threads: 3
Joined: Jun 2016
2016-06-18, 16:59:01
(This post was last modified: 2016-06-18, 16:59:30 by Evil.)
name = "Riolu Catcher"
author= "Evil"
function onPathAction()
if isPokemonUsable(1) then
if getMapName() == "Pokecenter Dewford Town" then
moveToMap("Dewford Town")
elseif getMapName() == "Dewford Town" then
if not isMounted() and hasItem("Bicycle") then
return useItem("Bicycle")
else
moveToMap("Route 106")
end
elseif getMapName() == "Route 106" then
moveToMap("Granite Cave 1F")
elseif getMapName() == "Granite Cave 1F" then
moveToRectangle(38, 14, 40, 14)
end
else
if getMapName() == "Granite Cave 1F" then
moveToMap("Route 106")
elseif getMapName() == "Route 106" then
if not isMounted() and hasItem("Bicycle") then
return useItem("Bicycle")
else
moveToMap("Dewford Town")
end
elseif getMapName() == "Dewford Town" then
moveToMap("Pokecenter Dewford Town")
elseif getMapName() == "Pokecenter Dewford Town" then
usePokecenter()
end
end
end
function onBattleAction()
if isWildBattle() and ( isOpponentShiny() or (getOpponentName() == "Riolu" ) ) then
if useItem("Ultra Ball") or useItem("Great Ball") or useItem("Pokeball") then
return
end
end
if getActivePokemonNumber() == 1 then
return run() or attack() or sendUsablePokemon() or sendAnyPokemon()
else
return run() or attack() or sendUsablePokemon() or sendAnyPokemon()
end
end
If you want to catch Riolu while leveling up your first pokemon in Granite Cave 1F, you just have to change:
if getActivePokemonNumber() == 1 then
return run() or attack() or sendUsablePokemon() or sendAnyPokemon()
to:
if getActivePokemonNumber() == 1 then
return attack() or sendUsablePokemon() or run() or sendAnyPokemon()
Posts: 46
Threads: 5
Joined: Jun 2016
thanks mr evil
i was looking for that one
it is possible to put the pokemon to only attack "speed evs pokemons"?? (if appears an geodude, he runs intead of killing)
Posts: 46
Threads: 11
Joined: Jun 2016
updated as u wanted
if ( getActivePokemonNumber() == 1 and getOpponentName() != "Geodude" ) then
name = "Riolu Catcher"
author= "Evil"
function onPathAction()
if isPokemonUsable(1) then
if getMapName() == "Pokecenter Dewford Town" then
moveToMap("Dewford Town")
elseif getMapName() == "Dewford Town" then
if not isMounted() and hasItem("Bicycle") then
return useItem("Bicycle")
else
moveToMap("Route 106")
end
elseif getMapName() == "Route 106" then
moveToMap("Granite Cave 1F")
elseif getMapName() == "Granite Cave 1F" then
moveToRectangle(38, 14, 40, 14)
end
else
if getMapName() == "Granite Cave 1F" then
moveToMap("Route 106")
elseif getMapName() == "Route 106" then
if not isMounted() and hasItem("Bicycle") then
return useItem("Bicycle")
else
moveToMap("Dewford Town")
end
elseif getMapName() == "Dewford Town" then
moveToMap("Pokecenter Dewford Town")
elseif getMapName() == "Pokecenter Dewford Town" then
usePokecenter()
end
end
end
function onBattleAction()
if isWildBattle() and ( isOpponentShiny() or (getOpponentName() == "Riolu" ) ) then
if useItem("Ultra Ball") or useItem("Great Ball") or useItem("Pokeball") then
return
end
end
if ( getActivePokemonNumber() == 1 and getOpponentName() != "Geodude" ) then
return run() or attack() or sendUsablePokemon() or sendAnyPokemon()
else
return run() or attack() or sendUsablePokemon() or sendAnyPokemon()
end
end
Posts: 46
Threads: 5
Joined: Jun 2016
Posts: 46
Threads: 5
Joined: Jun 2016
butt, thats actually made me run from everypokemon, and not just geodude instead
Posts: 46
Threads: 11
Joined: Jun 2016
name = "Riolu Catcher"
author= "Evil"
function onPathAction()
if isPokemonUsable(1) then
if getMapName() == "Pokecenter Dewford Town" then
moveToMap("Dewford Town")
elseif getMapName() == "Dewford Town" then
if not isMounted() and hasItem("Bicycle") then
return useItem("Bicycle")
else
moveToMap("Route 106")
end
elseif getMapName() == "Route 106" then
moveToMap("Granite Cave 1F")
elseif getMapName() == "Granite Cave 1F" then
moveToRectangle(38, 14, 40, 14)
end
else
if getMapName() == "Granite Cave 1F" then
moveToMap("Route 106")
elseif getMapName() == "Route 106" then
if not isMounted() and hasItem("Bicycle") then
return useItem("Bicycle")
else
moveToMap("Dewford Town")
end
elseif getMapName() == "Dewford Town" then
moveToMap("Pokecenter Dewford Town")
elseif getMapName() == "Pokecenter Dewford Town" then
usePokecenter()
end
end
end
function onBattleAction()
if isWildBattle() and ( isOpponentShiny() or (getOpponentName() == "Riolu" ) ) then
if useItem("Ultra Ball") or useItem("Great Ball") or useItem("Pokeball") then
return
end
end
if ( getActivePokemonNumber() == 1 and getOpponentName() != "Geodude" ) then
return attack() or sendUsablePokemon() or run() or sendAnyPokemon()
else
return run() or attack() or sendUsablePokemon() or sendAnyPokemon()
end
end
the problem was this
if ( getActivePokemonNumber() == 1 and getOpponentName() != "Geodude" ) then
return run() or attack() or sendUsablePokemon() or sendAnyPokemon()
just replaced it with this
if ( getActivePokemonNumber() == 1 and getOpponentName() != "Geodude" ) then
return attack() or sendUsablePokemon() or run() or sendAnyPokemon()
night i haven't seen it completely just added geodude to script
now it works as u intend
Posts: 46
Threads: 5
Joined: Jun 2016