#Change Spell Info In Icon Based On Custom AOE Trigger

3 messages · Page 1 of 1 (latest)

waxen jungle
#

Trying to make an icon that displays between two different spells based on if its an AOE situation. My question is what is the best way to do this and also why is what I'm currently trying not working.

First, I am unsure the best way to control which dynamic information is in the display:

A. recreate the spell cooldown/ready/charges triggers in custom triggers and include the aoe check to determine if its active (seems redundant and not as future proof)
B. use the 2 default Spell triggers (always active) and a custom aoe check trigger and then use a custom condition to control the display
C. use the aoe trigger to determine which dynamic info from the spells is passed to the display

Initially I was trying C, to have a trigger 3 check for the aoe condition and then grab the dynamic info from the spell triggers. Then we could just reference trigger 3 for what icon, text etc to use. To start I just wanted to see if I could even check if another trigger was active:

--Trigger 2
function()
return aura.env.states[1].show
end

I get an error that states is nil. The wiki for aura_env had me under the impression that the states of all triggers in this aura could be accessed this way but I might not fully grasp its use case. I also tried:

local states = WeakAuras.GetTriggerStateForTrigger(AuraId, 1) and still got a nil value. I grabbed this from snippets though and assumed AuraId is a global or something bc I couldn't find any info on that variable elsewhere

Trigger 1 in this case is Spell Cooldown/Ready/Charges set to Always active. Even if we end up going a different route for this I am still curious why this is nil.

Thank you for any advice. I know someone will say "just have 2 stacked icons and control the alpha" but I would like to figure out a solution for just 1 regardless as this will eventually be a group

obtuse thicket
#

!watched is the way, conditions won't let you change dynamic info source