#Smart group, showing group numbers
19 messages · Page 1 of 1 (latest)
What do you mean with group numbers?
oh, just subgroup when in a raid group
mainly so I can yell at people who ask what group they're in halfway through a pull
mainly just trying to utilise the anchoring to unit frames to clone it, wondering if that dynamic info that gets passed to triggers that auto clone info with smart group also gets passed to custom status triggers somehow
without having to iterate over the whole raid every time
local groupNum = select(3,GetRaidRosterInfo(unitRaidIndex))
you'll have to get the unit raid index to use that
if unit = "raid#" where # is any number
local index = tonumber(unit:gmatch('%d+'))
yeah I just think the way I'm thinking about this is wrong.
I have two triggers on a text aura that is anchored to unit frames.
The first is just a conditional to display/hide that works fine, based on an event.
The second is a player/unit info trigger that just returns the role in text and that works fine, showing the role in text on all the unitframes.
I was hoping to also show that subgroup aligned with the role text, but I have no idea how to actually get the raid index of a unit in a custom trigger, and I suspect it isn't possible since aura_env.state doesn't actually exist when I try to access it
dont use another trigger
use a custom text %c
then get the unit from trigger2
should be something like aura_env.states[2].unit
function()
return select(3,GetRaidRosterInfo(tonumber(aura_env.states[2].unit:gmatch('%d+'))))
end
use raid instead of smart group also.
otherwise you'll need to check if you're in a raid in the function because GetRaidRosterInfo() only works in raid
what if raid leader with static unit of raid1 but sitting in sub group 5
should probably work anyway, nvm