#Glow specific raid frame from aura_env

70 messages ยท Page 1 of 1 (latest)

leaden parcel
#

!tsu

inland geyserBOT
leaden parcel
#

make a field like unit = raid1 in your state

#

then any unit frame glow (from conditions or actions) will glow the frame belonging to that unit token

uncut thistle
#

hm, where do I put that exactly? sorry I'm very new to writing custom code in auras

leaden parcel
#

read the wiki article linked there

#

you can not just "put" it anywhere, your trigger would need to be a TSU

uncut thistle
#

ah ok, I created a smart group aura with a custom trigger that collects the longest duration, but I'm guessing thats a bad way to go about doing it

leaden parcel
#

not really, you reached your goal no?

#

it's just that to glow a specific unit frame, you'd then need something slightly different

uncut thistle
#

so I create an additional TSU trigger? or do I have to drop my original?

leaden parcel
#

you could just make your original into a TSU

#

export your aura if you care to

uncut thistle
#

!WA:2!1AvtVTTrt4O6dfGihsvrnst6bgv0aBuhHKaKe8wG4wrxP8rLTCOOItprVK7sXnHAxIDxklLJg9qp1d667nDU9I(jKFbeg9hqH)duaFON7SlzSTKTcYLsydTF8mZ8mZoZSBLwvhufxf)RRl4zQekJi60ZR9Z2PPyuNOijrvzgMkttqJ9iJu1(MWPHzsfFGEw6DJYyHkkNT26w2WxgJQSFSnktG8jSH1t4S(ePAxqAIWIWWIXVxPiwymxSlNYubB1ChVMUP2NZq(rCXaKYp1xrhqkNvj9ANz8EPyKI4sgsyQJrzWQifnCpkwf70aMkqgMjFORuHeQibM73pHFW(bf6yuL)Eb2NWdrj2ZX5L6m2235o2ncdjsPTkMydAuqW2PfEQwBaLTPG83Bd7Nqu7Kn4jqeoDBYGaIqU262yUb2zgUm4vtGO4A1Rtxy7ibAab2Fpc6nnaojRdQThitl9gRPLE9tfHgvIh4g70v1FaTFcefmKUaIMO6zZ5FBylid4dj26qMbchWiKZPlWkfK(Xle1UGv1FNrCToxZy8nSvImY6ZHLKijFKchHaSlindBT4y9VW)Z0I6xKw4iJ5hmXSGACk5OGmLIZ6mKiapycKQuKKeFIbIXCgGt6TZZ8A52y7MbrugvgV6XXumXhLKyYUKXoWYQBNF948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h, that's not really a custom trigger ๐Ÿ˜„

uncut thistle
#

haha I guess not

leaden parcel
#

while whatever you're doing there certainly works, using the custom trigger function like that is not really the way if you wanna do more with it

uncut thistle
#

Yea I can imagine, thats where the TSU comes in handy I suspect?

leaden parcel
#

and you're iterating over all your auras there and doing multiple API calls to get info about the buffs

uncut thistle
#

ah yea makes sense why its bad

leaden parcel
#

when you have a trigger there that already contains all that info

uncut thistle
#

you make a very good point

leaden parcel
#

!watched

leaden parcel
#

like that

#

this is looking at power word shield obviously, you'd put some other aura in trigger 2

uncut thistle
#

Awesome, thanks so much for your help, can I add a 3rd trigger and use that for activation to only proc the WA during a specific boss mechanic?

#

I know how to do that trigger, just wondering if the TSU will work with a 3rd, unrelated trigger as 'required for activation'

leaden parcel
#

sure that'd work

#

in that case this specific one would break in the sense that the text would always show as has the longest Buff!

#

even if no one has the buff

#

but you don't want the text anyways, eh? just the glow. and that'll work

uncut thistle
#

yea only the glow, so I just remove the display text?

leaden parcel
#

ye you can just delete it

uncut thistle
#

cheers, can't tell you how much help you've been

#

anothing thing aswell if you don't mind hehe

for i, GUID in ipairs(aura_env.affected) do
            local _, _, _, _, duration, expirationTime = WA_GetUnitDebuff(aura_env.GUIDToUnit[GUID], aura_env.targetSpellID)
            
            allstates[GUID] = {
                show = true,
                changed = true,
                unit = aura_env.GUIDToUnit[GUID],
                progressType = "timed",
                duration = 8,
                expirationTime = 8 + GetTime(),
                autoHide = true,
                index = i
            }

I want to fire off an event and send the raid position (raid1, raid2 etc) as an argument, can that be accessed with that code?

#

actually, I can probably send the name of the player and then iterate through the raid with UnitIsUnit?

leaden parcel
#

idk what exactly you want

#

send which unit ID from where to where

uncut thistle
#

I want to get the raid position of a player, either by name or id

#

trying to loop through the frames and compare names with UnitIsUnit now and CompactRaidFrame, but i can't get it to work

#

oh actually it is working, but I'm getting nil

#

frame = _G["CompactRaidFrame"..i]

this thing is returning nil

leaden parcel
#

I want to get the raid position of a player, either by name or id

#

I don't understand this

uncut thistle
#

it is working now

#

I can find the player that matched

#

the position of that player

#

1-20

leaden parcel
#

you mean the one that has the longest debuff?

#

should've said that right away ๐Ÿ˜„

uncut thistle
#

not specifically, just trying to understand TSUs and events more ๐Ÿ˜„

leaden parcel
#
    -- do smth
end```
#

that iterates over all group members

#

where unit is the respective unit token, raid1 to raid20

uncut thistle
#

oh thats awesome, very clean

#

will try it

leaden parcel
#

(or party1 to party5 if in a party)

uncut thistle
#

yea

#

then how would I best "export" that unit? if I want to make it glow for example

leaden parcel
#

So, pass it along to some other code block or something?

uncut thistle
#

Yea, say that it gives me 'raid3' for example, how do I make raid3 glow?

leaden parcel
#

I mean, I just gave you an example aura

#

And the TSU wiki article is linked above

uncut thistle
#

yea I guess thats the same thing, I dont quite understand it but ill give it some more thought, tyvm ๐Ÿ™‚

uncut thistle
#

ok, I've gotten it to glow now, but I'm having trouble with hiding it... the timer properly happens but the glow does not hide

function(allstates, event, ...)
    if event == "LAGET_ASSIGNMENT_FAR" then
        local name = ...
        local unit = nil
        
        for unitID in WA_IterateGroupMembers() do
            if name == UnitName(unitID) then
                unit = unitID
                print("unit: ", unit)
                break
            end
        end
        
        if unit then
            allstates[unit] = {
                show = true,
                changed = true,
                unit = unit
            }
            
            C_Timer.After(2, function()
                    allstates[unit].show = false
                    allstates[unit].changed = true
            end)
        end
        
        return true
    end
    
    return false
end
#

Think I fixed it by making it a progressType = "timed" with a duration and autohide, hopefully thats a decent way to do it