#Combatlog Interrupt trigger.

54 messages · Page 1 of 1 (latest)

wide cosmos
#

Is it possible to display the spell icon of the spell you have interrupted?

shadow shore
#

Have you checked it it's available as a text replacement?

#

Usually %i I think, but just check it out

wide cosmos
#

I using an icon weakaura.
I want to use that because I want s border around the icon

shadow shore
#

Then you'd have to make a custom trigger

#

You can set the icon to whatever you want with that

wide cosmos
#

Can you use this trigger source player and destination hostile
And then a new trigger get spell icon and set icon fallback to trigger 2?

shadow shore
#

!watched

shadow shore
#

!tsu

steep gobletBOT
shadow shore
#

(you don't need a TSU for this, the old style of custom trigger is also fine)

wide cosmos
#

Ah thanks!
I will look into it

shadow shore
#

like that

#

that's just a 3s duration icon aura of the spell you interrupted

#

you can get a border from the text replacement as well btw, if the icon itself already has a border

#

then you'd save the code

wide cosmos
#

Oh shit thanks! That works!

#

MVP

wide cosmos
#

May I ask why Clone per event is not working?
I dublicated your and changed to Dispel instead, and want clone per event on this.

shadow shore
#

the TSU is

#

and it only creates a singular clone (and overwrites it) each time

#

if you want it to create multiple then you just have to give each one a unique ID instead of overwriting the "" clone each time

#

e.g. like a[s[""].destGUID] to create one per interrupted/dispelled enemy

#

or just a[WeakAuras.GenerateUniqueID] to generate one for truly every occurence

#

ticking "clone per event" in the combat log trigger does nothing

wide cosmos
#

So like this?

function(a,e,_,s)
    if e == "TRIGGER" and s and s[""] then
        a[WeakAuras.GenerateUniqueID] = {
            icon = C_Spell.GetSpellTexture(s[""].extraSpellId),
            progressType = "timed",
            autoHide = true,
            duration = 3,
            expirationTime = GetTime() + 3,
            show = true,
            changed = true,
        }
        return true
    end
end
shadow shore
#

sure, then it creates multiple clones

#

just need to put it into a dynamic group to see all of them

wide cosmos
#

Yes of cause.

wide cosmos
#
function(a, e, _, s)
    if e == "TRIGGER" and s and s[""] then
        local uniqueID = WeakAuras.GenerateUniqueID()
        a[uniqueID] = {
            icon = C_Spell.GetSpellTexture(s[""].extraSpellId),
            progressType = "timed",
            autoHide = true,
            duration = 3,
            expirationTime = GetTime() + 3,
            show = true,
            changed = true,
        }
        return true
    end
end

Needed to make a local for it before it would work lol.

#

But is not getting the right name hm.

shadow shore
#

Meaning what?

wide cosmos
#

The name is the same as the first "clone"

shadow shore
#

Initially you only said you wanted the icon, nothing about a name.

If you take the text replacement from trigger 2 then it'll only show the most recent dispell/interrupt.
You could either autoclone the combat log trigger and create clones in the TSU with the same cloneId, then the text replacements from trigger 2 should match IIRC. But idk what the cloneId of combatlog triggers is, you'd have to check that yourself.

Or you just add a field for the name in the TSU.
Like spellName = s[""].extraSpellName,
And then %1.spellName in display.
Although it's only a guess if it's actually extraSpellName and not called something else.

wide cosmos
#

Oh yea I did.
I have added an text to it with [%2.extraSpellName]

shadow shore
#

That's not what I mean

wide cosmos
#

Nono, that's what i did before.

shadow shore
#
function(a,e,_,s)
    if e == "TRIGGER" and s and s[""] then
        local uniqueID = WeakAuras.GenerateUniqueID()
        
        a[uniqueID] = {
            icon = C_Spell.GetSpellTexture(s[""].extraSpellId),
            progressType = "timed",
            autoHide = true,
            duration = 3,
            expirationTime = GetTime() + 3,
            spellName = s[""].extraSpellName,
            show = true,
            changed = true,
        }
        return true
    end
end```
wide cosmos
#

yup that works!

#

Can I brother you with 1 last thing? 😄

shadow shore
#

Go ahead

wide cosmos
#

If I want to add test function to it, so it shows showing when WeakAuras.IsOptionsOpen
I want the name to be Test and Icon to be 374389

shadow shore
#

There's the "OPTIONS" event for that

#
-- your option stuff
elseif e == "TRIGGER" and s and s[""] then
-- the previous stuff 
end```
wide cosmos
#

Oh that's nice.

#

Thanks!