Trigger Priorities?

Post Reply
Alaran
Posts: 27
Joined: Sat Dec 19, 2009 2:51 pm

Trigger Priorities?

Post by Alaran »

If you have several triggers with the same pattern, is it possible to configure in which order they will be called?

Is it possible to configure in which order events with raiseEvent() will be called?

Or is there any other way in which I can configure the order that wouldn't make me call every function on every prompt always just so I can be assured the order is correct?

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: Trigger Priorities?

Post by Vadi »

a) Yes, arrange one to be before the other in the script editor. Same goes for alias, script, and etc. execution - done in the visual order.

b) Event order does not matter and should not by design. Events are also processed after all triggers/aliases are, which allows you to split the system design into data gathering / action on the data (ie have the prompt trigger save values and raise an event, any script that listens to that event will always operate on the latest values).

c) That's how order is, events are after everything. Makes everything nice and clean.

Alaran
Posts: 27
Joined: Sat Dec 19, 2009 2:51 pm

Re: Trigger Priorities?

Post by Alaran »

I didn't know the visual order affected it. Thanks!

Post Reply