#Repeating Progress Bar for Channeling ticks

25 messages · Page 1 of 1 (latest)

plain rock
#

Hello,
I would like to create a progress bar that shows when i cast f.e. Rain of Fire (8sec duration, ticks every 2sec). But instead of using my actual cast (trigger1, player/unit info, cast, player, exact spellID) as “Progress Source”. I would like to use a second trigger wich should be a repeating 2sec timer wich starts whenever a cast starts and just repeats itself every 2seconds until the cast ends. But I have no idea how to create that

topaz willow
#

pretty sure you'd need a custom trigger looking at combat log events cast start

steady agate
#

yeah you'll need something fully custom. starting the repeating timer when you start casting and resetting it if you stop.

plain rock
#

unfortunately I do not know Lua or how to write custom code

whole dagger
plain rock
#

Thanks@whole dagger, this does work!

Is there a way I could check for a certain buff (f.e: Mind Quickening Gem) on the start of the cast. And modify the timer duration accordingly?

#

I think there are only 2 and a half such buffs in all of era.

  1. MQG = 33% haste
  2. Troll Racial = either 10% or 30% haste (depending if used above or below 40%HP, both buffs use the same id)
whole dagger
plain rock
#

On a second thought I think this might be the wrong approach. The timer would be false whenever a meele haste buff would be active

whole dagger
#

try typing /run print(GetHaste(),GetMeleeHaste(),GetRangedHaste()) before & after using MQG and check if any of those numbers change

plain rock
#

guess I was wrong, but
MQG doesn't change any of those Values

#

Troll Racial does change all of them

#

It doesnt need to anyways, I just realize it doesnt affect channeled spells, the MQG

#

the second WA you linked is just prefect!

whole dagger
#

ah cool. strange as i thought GetHaste = spell haste / GetMeleeHaste = melee haste / GetRangedHaste = hunter haste but i guess that's not the case in vanilla.

plain rock
#

I think it is like you describe it. Just the MQG is an exception

plain rock
whole dagger
plain rock
# whole dagger https://wago.io/9nB6OIyDO

sorry if I get annoying, but could you please update the aura without haste modificator instead. channeled spells don't get affected by haste in era I was wrong about that in general as well

#

~e/ I just removed the divider in line 11, hope that does the trick^^

#

Thank YoUwU Avatar Wan WA_heart2

whole dagger
#

ye should be enough to do that

plain rock
#

I'm pretty happy with the aura, just would like to make one addition, where I think need custom code again.
I would like to add:
Animations->[Type]Custom->[Color]check-[Type]Custom Function:
function(progress, r1, g1, b1, a1, r2, g2, b2, a2)
if "Trigger2 remaining time" > "Trigger1 remaining time" then
return 1, 0, 0, 1 --red
else
return ?, ?, ?, ? --default colors
end

something like this but again I dont talk lua 😦

whole dagger
#

don't do that through animations, that's outdated info. do it through conditions:
if custom check

function(states)
    if states[1].expirationTime and states[2].expirationTime then
        return states[2].expirationTime > states[1].expirationTime
    end
end

then bar color start red