WeakAuras

WeakAuras

206M Downloads

Allowing %values for condition - remaining duration

Causese opened this issue · 9 comments

commented

Is your feature request related to a problem? Please describe.
I want to make a sound only fire if a) cast is finished and b) i have a certain aura applied to me and I don't want to put in a non%-number since cast times tend to change based on raid-difficulty/nerfs/etc.

on hide -> play sound is not a solution since the player who's targeted by the cast might die, which causes the cast to abort and to play the sound.

Describe the solution you'd like
simply allowing %values for remaining duration, e.g 100% to make a sound only fire when the cast finishes/reaches max duration.

Describe alternatives you've considered
i could custom code it to make it fire when the cast succeeds but that would require multiple events which makes things a bit more expensive.

commented

T1: event - combat log - spell cast success
T2: aura
req activation: all
on show => sound

"that would require multiple events" what ??

commented

i want to show the cast's duration and only the sound to happen when it succeeds

wasn't clear sorry

commented

you can use a cast trigger + condition if "remaining duration" < 0.1 then play sound

commented

edit: i need to track the end of a cast

initially i also believe that i have to track < 0.1
it's not a channel however, even if it was, a player might still die at <0.1 assuming there is something between 0 and 0.1

the mechanic:
throws javelin at a player when 4s cast finishes. i want to show the cast's duration so people have more time to prepare.
if javelin color (based on spellID) == player's debuff color and cast ended then
play sound "collect"

since the javelin has to be collected by a player of the matching color.

commented

why not split the task in 2 auras ?

  • one for the cast
  • one for the spell cast success event with sound on show
commented

the player is immediately pinned by the javelin once the cast succeeds. showing an aura for a second or so just to fire a sound is bit overkill imo.

after that player is pinned, another player with matching color has to free him

edit: also there's ppl who don't use my sounds, so that aura would trigger for no reason

i could obviously code everything the way i want, this ticket is just about saving time when creating auras by not having to custom code

commented

Yeah i get that, i'm giving solutions for doing it without custom but you don't like them :(

The second aura could show a visual clue for those who don't have your sound pack
And i guess both have a debuff/buff so you can use 2 aura trigger

commented

the 4s cast visual should be enough of a clue :P
i guess i could make a second trigger that doesn't return true and make it fire via condition

makes it 2 events tho

commented

This is close enough to #477 that I think any solution we choose for that ticket would solve this one. So I’m going to close this as a duplicate.