Hello! I have a question about adding triggers to weak auras. I have a weak aura manabar, and a weak aura castbar, and would like to add triggers with effect for both. I would like the manabar to start glowing or a simular effect when below 30% mana, and i would like the castbar to flash green when a spell completes, and red when a cast is interupted or channel is stopped by me. I tried for about 90 minutes so far but the only trigger i got working was for it to appear or disappear at 30%.
#Manabar/castbar triggers
15 messages · Page 1 of 1 (latest)
!auracreation
Here's the work flow for any Aura:
1. Think about all the info that the Aura you're trying to make will need.
2. Make a trigger for each piece of info
3. Decide which info should be sent as Dynamic Info and order the triggers accordingly.
3a. Order them so that "Dynamic Info from First Active" catches the right info, or select a specific trigger.
4. Decide which triggers need to be involved in overall activation of the Aura and change Required for Activation accordingly
4a. All (default), Any or Custom (e.g. function(t) return t[1] and (t[2] or t[3]) end) - https://github.com/WeakAuras/WeakAuras2/wiki/Aura-Activation-and-Deactivation#custom
4b. This step lets you include triggers that will be used only for Conditions but excluded from Activation entirely.
5. Make your conditions using the info from the triggers.
While working through this and building your Aura, if there's anything you're unsure of, just ask in the appropriate Help channel.
Glowing the mana bar is very simple. No need to add a trigger, just make a Condition.
Generally adding extra triggers to an Aura to be able to use info from that trigger in a Condition isn't an issue, just sort the Activation.
The Castbar thing is a little trickier than you're imagining probably. Depending on precisely what visuals you're wanting
Thanks you for responding so quickly! when i set conditions to "!max power < 30" and "1 Glow / Visibility" nothing happens. Only thing i've been able to do is get it to play a sound at below 30% so im getting the that part right, but i cant find a glow that works
Im sorry im not very savy but trying to learn
You don't want "max power", that would be a Condition based on your total power.
You don't even want just "power" since that would be an absolute value, not a percentage.
You want "power %"
For the glow, a bar doesn't have a glow by default so you'd need to go to the Display tab and create a Glow Subelement there.
Thank you again, i got the "power %" condition to work with sound and with for example changing the color of the bar under that percentage, and i can make the bar glow in display tab like you said but i still cant figure out how to get it to glow only under 30%; how you would connect the condition with the display glow
With the glow created in Display, and set to not show in Display, you simply use [... then glow1 visibility = tick] in Conditions
I got it working with that thank you!
The second function im looking for is getting my spellbar to flash green when completing a spell, and to flash red if i interupt it by walking or casting an instant cast. im playing around with conditions but cant seem to find the right one. i made the green glow i want to flash already in display
As I said, that'll be significantly more complex.
You'll need to add triggers, probably custom ones
For castbar you can look at my aura https://wago.io/Yjx7bHW6u
Far trickier than I thought. Lots of custom events to pass from one aura to other.