I’m trying to edit a Shroud of Concealment weak aura I used to use to announce to party chat when Podtender, the cheat death from Dreamweaver for Night Fae, procs. It then counts down in party chat, and announces the end of the stun. That’s the goal, anyway.
This is the WA itself: https://wago.io/sLmrFGKBT
local iterations = 10 – How many times you want the function to be called
local time_left = 9 – Counter for the functionfunction sayText()
if time_left > 0 then
– Countdown message here
SendChatMessage(“”..(time_left),PARTY)
else
– Final message here
SendChatMessage(“Stun Has Ended”)
end
– Decrease the counter
time_left = time_left - 1
end– Start the timer
local timer = C_Timer.NewTicker(1, sayText, iterations)
It “works” but I get wago alerts about problems with the code, I was wondering if anyone could help me clean it up?
Also it would be wonderful if we could instead have it count down by 2-3 seconds instead of every second so as to not spam party, but I’m not sure how to do that?