Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onStop()
- log("Charmander caught: "..counter)
- end
- function onPause()
- log("Charmander caught: "..counter)
- end
- function onBattleMessage(message)
- if stringContains(message, "caught") then
- counter = counter +1
- log("One more Charmander")
- end
- end
- function onPathAction()
- if isPokemonUsable(1) and isPokemonUsable(2) and getRemainingPowerPoints(2, "False Swipe") > 0 then
- if getMapName() == "Pokecenter Route 10" then
- moveToMap("Route 10")
- elseif getMapName() == "Route 10" then
- moveToMap("Route 9")
- elseif getMapName() == "Route 9" then
- moveToMap("Cerulean City")
- elseif getMapName() == "Cerulean City" then
- moveToMap("Route 24")
- elseif getMapName() == "Route 24" then
- moveToMap("Route 25")
- elseif getMapName() == "Route 25" then
- moveToRectangle(30,9,35,9)
- end
- else
- if getMapName() == "Route 25" then
- moveToMap("Route 24")
- elseif getMapName() == "Route 24" then
- moveToMap("Cerulean City")
- elseif getMapName() == "Cerulean City" then
- moveToMap("Route 9")
- elseif getMapName() == "Route 9" then
- moveToMap("Route 10")
- elseif getMapName() == "Route 10" then
- moveToMap("Pokecenter Route 10")
- elseif getMapName() == "Pokecenter Route 10" then
- usePokecenter()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement