View Single Post
Old 08-31-12, 01:21 PM   #370
Meorawr
A Chromatic Dragonspawn
AddOn Author - Click to view addons
Join Date: Nov 2010
Posts: 193
Actions are the do-ers, triggers are the poking sticks and sequences are the groups that hold triggers.

Let's take the simple task of showing a display - what happens there is we have an action (DisplayActivate). We create triggers on that action (UnitAura, SpellOffCooldown, etc.) and use sequences to combine the triggers into logical sequences (hence the name) - an example is "1&2&3" which means "if triggers 1 and 2 and 3 are active, then activate this action".

You can have multiple sequences on an action, and the first one takes priority over the second which takes priority over the third, and so on. The reason for this is because other display actions (like Color) can then be set up to dynamically change the colour of a display based upon the active triggers - say you wanted a display to be red when a spell was off cooldown, but green if it was on cooldown. Sequence #1 would be the on cooldown check, and #2 would be the off cooldown check.

You can only have one of each type of 'display action' per display - this is to avoid conflicts, imagine having two color actions activate at once. There'd be no real defined behaviour.
Meorawr is offline