Jump to content

WebWalkEvent : setBreakCondition : Unseen Delay?


avid

Recommended Posts

Hello all, thanks for reading!

 

So, I am putting together a lil script that requires some custom obstacle handling. All fine and dandy, I got the handler written and if I let it run while I path manually, it blazes through the obstacle at breakneck speeds! HOWEVER, if I use the setBreakCondition feature of WebWalkEvent the script takes a good 1-3 seconds before it even begins handling the obstacle. 

Script's current delays as set by me:
onLoop(): 200

 WebWalkEvent evt = new WebWalkEvent(targetArea);
                evt.setBreakCondition(new Condition() {

                    @Override
                    public boolean evaluate() {
                        return dialogues.inDialogue();
                    }
                });
                execute(evt);

I figured it could be the dialogues.inDialogue(); check, but generally it is returning extremely quick (so I don't think it is causing the 1-3 second delay).

Note this isn't a killer for the script, just very noticeable and slow. Anyone know what's up?

Thanks in advance for your advice,

Avid

 

EDIT: Upon timing the delay, it's anywhere from 1-10 seconds. The ten second delays, seeming like forever!

Edited by avid
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...