#Smart group, showing group numbers

19 messages · Page 1 of 1 (latest)

mystic trellis
#

When using a smart group, you can easily clone stuff for things in unitframes like health values, buffs, etc. is there any way to just show group numbers for this? Trying to make a weakaura that just shows group numbers in a text aura when a pull timer starts using a custom trigger

coral depot
#

What do you mean with group numbers?

mystic trellis
#

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

solemn leaf
#

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+'))

mystic trellis
#

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

solemn leaf
#

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

river steppe
#

should probably work anyway, nvm