Hello There, Guest! Login Register


Route 19 Script, dont know what's wrong
#1
Hey,
I want to level on Route 19 (with surf, I have surf on my second team pokemon)
So I wrote a script, but the battle script from hothot.

{
    "name": "Leveling: Route 19 (near Fuchsia)",
    "author": "Biolectra",
    "path": [
        {
            "condition": ["usablePokemons", ">", 1],
            "actions": [
                {
                    "condition": ["map", "Pokecenter Fuchsia"],
                    "action": ["moveToMap", "Fuchsia City"]
                },
                {
                    "condition": ["map", "Fuchsia City"],
                    "action": ["moveToMap", "Fuchsia City Stop House"]
                },
                {
                    "condition": ["map", "Fuchsia City Stop House"],
                    "action": ["moveToMap", "Route 19"]
                },
                {
                    "condition": ["map", "Route 19"],
                    "action": ["moveToRectangle", [7,30], [9,40]]
                }
            ]
        },
        {
            "actions": [
                {
                    "condition": ["map", "Route 19"],
                    "action": ["moveToMap", "Fuchsia City Stop House"]
                },
                {
                    "condition": ["map", "Fuchsia City Stop House"],
                    "action": ["moveToMap", "Fuchsia City"]
                },
                {
                    "condition": ["map", "Fuchsia City"],
                    "action": ["moveToMap", "Pokecenter Fuchsia"]
                },
                {
                    "condition": ["map", "Pokecenter Fuchsia"],
                    "action": ["usePokecenter"]
                }
            ]
        }
    ],
    "battle": [
        {
            "condition": ["isOpponentShiny"],
            "action": ["useItem", "Ultra Ball", "Great Ball", "Pokeball"]
        },
        
        {
            "condition": ["usablePokemons", ">", 1],
            "actions": [
                {
                    "condition": ["activeHealth", ">", 0],
                    "action": ["attack"]
                },
                {
                    "action": ["sendNextPokemon"]
                }
            ]
        },
        {
            "condition": ["usablePokemons", "=", 1],
            "actions": [
                {
                    "condition": ["activeHealth%", ">=", 40],
                    "action": ["attack"]
                },
                {
                    "action": ["run"]
                }
            ]
        }
    ]
}

instead of
"action": ["moveToRectangle", [7,30], [9,40]]
i tried this.
"action": ["moveToWater"]

Problem:
Bot stops moving after he leaves Fuchsia City Stop House cell [23,4] with both actions.
But if I log out at cell [7,30] it works, he levels, heals pokemon, but again after that he stucks after leaving Fuchsia City Stop House :/
 
Reply
#2
So the problem is that the bot get's stuck inside of the stop house either way?
 
Reply
#3
boomer00oo So the problem is that the bot get's stuck inside of the stop house either way?

No, after he leaves the stop house. (if you mean the way to the level location and the way to the pokecenter)
And if you mean actions, yes he stucks with both action.. if not I wouldnt write this post ._.

And like I said, he stucks only after he was at the pokecenter for healing.

if I log out at 7,30 it works fine, he levels, HEALS!! (Heals means, he gos up to the stop house, then fuchisa then pokecenter, but then he gos back and stucks again after he LEAVES the stop house at 23,4
 
Reply
#4
I cannot see anything wrong with the current state that the script is in, the only problem that I can think of that is being caused here is the same as someone else had a while back with a stop house. Maybe try:
{
    "condition": ["map", "Fuchsia City Stop House"],
    "action": ["moveToCell", [xx, xx]]
},
(Replace [xx, xx] with the cell of the exit from the Stop house leading to route 19. Make sure it is exactly the cell that takes you to route 19)
instead of
{
    "condition": ["map", "Fuchsia City Stop House"],
    "action": ["moveToMap", "Route 19"]
},
 
Reply
#5
boomer00oo I cannot see anything wrong with the current state that the script is in, the only problem that I can think of that is being caused here is the same as someone else had a while back with a stop house. Maybe try:
{
    "condition": ["map", "Fuchsia City Stop House"],
    "action": ["moveToCell", [xx, xx]]
},
(Replace [xx, xx] with the cell of the exit from the Stop house leading to route 19. Make sure it is exactly the cell that takes you to route 19)
instead of
{
    "condition": ["map", "Fuchsia City Stop House"],
    "action": ["moveToMap", "Route 19"]
},

Well, 7,19 -> 7,20 exit but its not working, stucks again
Thx anyway. Smile
 
Reply
#6
Where does it get stuck? Still the same position?
 
Reply
#7
boomer00oo Where does it get stuck? Still the same position?

Yes.
 
Reply
#8
Oh okay, sorry I couldn't help you solve the problem. I am sure Silv3r the all great and mighty will answer soon and fix the problem! Big Grin
 
Reply
#9
boomer00oo Oh okay, sorry I couldn't help you solve the problem. I am sure Silv3r the all great and mighty will answer soon and fix the problem! Big Grin

Yeah :p

Some more Info for Silv3r.

-Tried to log off at 19,28 (next to ship captain, right bevore water), still bot wont use surf ._.
-My second team Pokemon has surf.
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)