Event Queing

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

javelinl
a lesser mummy
a lesser mummy
Posts: 70
Joined: Thu Mar 11, 2004 12:40 pm

Event Queing

Post by javelinl » Tue Mar 23, 2004 12:18 pm

I tried running a search on this, but didn't quite find what I was looking for.

Basically, I was curious how events are queued. If one event occurs in the middle of a sub, is it saved? ran immediately etc....

What if multiple events occur? (one occurs before another event finishes...)

I've gotten different results from testing (sometimes events seem to be just passed by if enough lag occurs) so I was curious about the how things are handled in theory...

Zazoot
a hill giant
a hill giant
Posts: 163
Joined: Sat Feb 07, 2004 11:02 am

Post by Zazoot » Tue Mar 23, 2004 3:08 pm

what about having some sort of global variable that needs to be 0 for events to go off?

maybe doing something like this in the events so they dont overlap?

Code: Select all

sub event_something
/if happening==0 {
/varset happening 1
****do whatever it is your event was for
/varset happening 0
}
/return

hmm, would that work?

im gonna play with it when i get home
i think this is what i need for my rangerbuddy mac as well haha