Hello There, Guest! Login Register


Little confused on how to use 3 syncs
#1
If I start this at night with my Timid sync already on at the 1st in party then morning comes along it switches with the sync thats 3rd in party which is the modest, then let noon come along, it will not switch to adamant. I thought I fixed this by changing

return swapPokemon(3, 1)

to

return swapPokemon(4, 1)

now currently at noon = adamant 1st in party, modest is in 4th in party and timid is 3rd in party
this worked until it came back to morning, timid would be 1st in party, modest in 4th and adamant in 3rd.
so now basically it can't switch from timid to modest for the morning.

Just need a little help on what would fix this so I don't have to come back to it saying "no action executed"

I've hope I explained this properly.
function onPathAction()


    if getRemainingPowerPoints(2, "False Swipe") >= 1 and isPokemonUsable(2) then

        if isNoon() and getPokemonNature(1) == "Adamant" then
            return swapPokemon(3, 1)

        elseif isNoon() and getPokemonNature(1) == "Adamant" then

            if getMapName() == "High Tide Entrance Room" then
                    moveToRectangle(15, 19, 20, 19)

            end

        end

        if isMorning() and getPokemonNature(1) ~= "Modest" then
            return swapPokemon(3, 1)
        elseif isMorning() and getPokemonNature(1) == "Modest" then

            if getMapName() == "High Tide Entrance Room" then
                moveToWater()

            end
        end

        if isNight() and getPokemonNature(1) ~= "Timid" then
            return swapPokemon(3, 1)
        elseif isNight() and getPokemonNature(1) == "Timid" then

            if getMapName() == "High Tide Entrance Room" then
                moveToWater()
                
            end
        end
        
    end
end
 
Reply
#2
You could use the PC instead of taking this method, but nvm Tongue
Here is your fix~
You should do really more conditions to be sure the bot can do anything IN ANY CASE
To create a script, you really need to think, before using it, at any case. Of course, you cannot if it's your first script, but you'll see you gain a lot of time by doing that.

Also, noticed your script had a difference with others, this maybe would be the problem?
(Didn't really look the whole script, I'd need more infos like :
Conditions Starts Adamant[1] Timid[3] Modest[4]
isNoon should be Timid[1] Adamant[3] Modest[4]
etc..
(You maybe already said that in your paragraph, but i'm too lazy to concentrate to understand, so if you make it noob friendly, i'll voluntary fix your problem xD))
I do NOT publish script and don't accept script requests.
I just help people do their own scripts.
 
Reply
#3
Privacy If I start this at night with my Timid sync already on at the 1st in party then morning comes along it switches with the sync thats 3rd in party which is the modest, then let noon come along, it will not switch to adamant. I thought I fixed this by changing

return swapPokemon(3, 1)

to

return swapPokemon(4, 1)

now currently at noon = adamant 1st in party, modest is in 4th in party and timid is 3rd in party
this worked until it came back to morning, timid would be 1st in party, modest in 4th and adamant in 3rd.
so now basically it can't switch from timid to modest for the morning.

Just need a little help on what would fix this so I don't have to come back to it saying "no action executed"

I've hope I explained this properly.
function onPathAction()


    if getRemainingPowerPoints(2, "False Swipe") >= 1 and isPokemonUsable(2) then

        if isNoon() and getPokemonNature(1) == "Adamant" then
            return swapPokemon(3, 1)

        elseif isNoon() and getPokemonNature(1) == "Adamant" then

            if getMapName() == "High Tide Entrance Room" then
                    moveToRectangle(15, 19, 20, 19)

            end

        end

        if isMorning() and getPokemonNature(1) ~= "Modest" then
            return swapPokemon(3, 1)
        elseif isMorning() and getPokemonNature(1) == "Modest" then

            if getMapName() == "High Tide Entrance Room" then
                moveToWater()

            end
        end

        if isNight() and getPokemonNature(1) ~= "Timid" then
            return swapPokemon(3, 1)
        elseif isNight() and getPokemonNature(1) == "Timid" then

            if getMapName() == "High Tide Entrance Room" then
                moveToWater()
                
            end
        end
        
    end
end

Hello, I'm kinda confused but from what I understand, you are using 4 of your pokemon, leaving your 2nd pokemon steady for catching other wild pokemon, and it seems you wanna use your pokemon with a specific nature for a specific time of the day on specific places to move (correct me if I'm wrong).

I took your script and edited assuming that you wanna use your Timid pokemon at night, your Modest pokemon at morning and your Adamant Pokemon at noon, let me know if this works for you:

name = "High Tide Entrance Room - Timid, Modest and Adamant"
author = "Privacy (edited by Emuuung)"
function onPathAction()
    if isPokemonUsable(1) and isPokemonUsable(2) and getRemainingPowerPoints(2, "False Swipe") >= 1 then
--Noon: Adamant
        if isNoon() and getPokemonNature(1) == "Adamant" then
            if getMapName() == "High Tide Entrance Room" then
                return moveToRectangle(15, 19, 20, 19)
            end
        elseif isNoon() and getPokemonNature(1) ~= "Adamant" then
            if getPokemonNature(3) == "Adamant" then
                return swapPokemon(1,3)
            elseif getPokemonNature(4) == "Adamant" then
                return swapPokemon(1,4)
            end
        end
--Morning: Modest
        if isMorning() and getPokemonNature(1) == "Modest" then
            if getMapName() == "High Tide Entrance Room" then
                return moveToWater()
            end
        elseif isMorning() and getPokemonNature(1) ~= "Modest" then
            if getPokemonNature(3) == "Modest" then
                return swapPokemon(1,3)
            elseif getPokemonNature(4) == "Modest" then
                return swapPokemon(1,4)
            end
        end
--Night: Timid
        if isNight() and getPokemonNature(1) == "Timid" then
            if getMapName() == "High Tide Entrance Room" then
                moveToWater()                
            end
        elseif isNight() and getPokemonNature(1) ~= "Timid" then
            if getPokemonNature(3) == "Timid" then
                return swapPokemon(1,3)
            elseif getPokemonNature(4) == "Timid" then
                return swapPokemon(1,4)
            end
        
        end
    end
end

Warning: your script has no battle action so I asume you also wanna have your 1st pokemon usable, in this case the path doesn't have a protocol when 1st and 2nd pokemon aren't usable, so I guess you should fill in the rest according to your needs.

Enjoy!
 
Reply
#4
You can try this and share the script to me if its working, i'm planning to go there to Hunt Noibat and Piplup some other times, TIA

function onPathAction()


    if (isPokemonUsable(2) and getRemainingPowerPoints(2,"False Swipe") >= 1) then

    if isNoon() and getPokemonNature(1) == "Modest" and getPokemonNature(3) == "Adamant" and getPokemonNature(4) == "Timid" then
        return swapPokemon(1, 3)
    elseif isNoon() and getPokemonNature(1) == "Modest" and getPokemonNature(3) == "Timid" and getPokemonNature(4) == "Adamant" then
        return swapPokemon(1, 4)
    elseif isNoon() and getPokemonNature(1) == "Adamant" then

        --Noon Map

    end

    if isMorning() and getPokemonNature(1) == "Timid" and getPokemonNature(3) == "Modest" and getPokemonNature(4) == "Adamant" then
        return swapPokemon(1, 3)
    elseif isMorning() and getPokemonNature(1) == "Timid" and getPokemonNature(3) == "Adamant" and getPokemonNature(4) == "Modest" then
        return swapPokemon(1, 4)
    elseif isMorning() and getPokemonNature(1) == "Modest" then

        --Morning Map
    end
    
    if isNight() and getPokemonNature(1) == "Adamant" and getPokemonNature(3) == "Timid" and getPokemonNature(4) == "Modest" then
        return swapPokemon(1, 3)
    elseif isNight() and getPokemonNature(1) == "Adamant" and getPokemonNature(3) == "Modest" and getPokemonNature(4) == "Timid" then
        return swapPokemon(1, 4)
    elseif isNight() and getPokemonNature(1) == "Timid" then

        --Night Map

    end
    
    else
        --Heal on PC
    end
end

Note: Start the script with the correct Nature and Time.
Credits is much appreciated
God Karp Trainer loading... *splash*splash Huh

 
Reply
#5
Yeah I explained it poorly Emuuung but I'm glad you understood the gist of it.

Also redskhie if I do get around to farming there again, I'll be sure to pass the script along to you.

Thanks for the help guys Smile
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)