#Combatlog Interrupt trigger.
54 messages · Page 1 of 1 (latest)
Have you checked it it's available as a text replacement?
Usually %i I think, but just check it out
I using an icon weakaura.
I want to use that because I want s border around the icon
Then you'd have to make a custom trigger
You can set the icon to whatever you want with that
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?
E.g. watch the combat log trigger you have there to get all the data you need (interrupt happened, spell that was interrupted, etc.) and then set the icon field of a TSU to C_Spell.GetSpellTexture(whatEverSpellIdYouGot)
!watched
!tsu
Trigger State Updater is an advanced custom trigger type that allows for the creation of clones, as well as generally being a very flexible custom trigger for almost all situations. While it is complex, the wiki aims to be thorough so please do use it.
https://github.com/WeakAuras/WeakAuras2/wiki/Trigger-State-Updater-(TSU)/
(you don't need a TSU for this, the old style of custom trigger is also fine)
Ah thanks!
I will look into it
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
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.
because the combat log trigger isn't the one supplying the clones
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
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
sure, then it creates multiple clones
just need to put it into a dynamic group to see all of them
Yes of cause.
Still only shows 1 dispell even tho I'm dispelling 2
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.
Meaning what?
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.
Oh yea I did.
I have added an text to it with [%2.extraSpellName]
That's not what I mean
Nono, that's what i did before.
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```
Go ahead
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