#Roles

1 messages · Page 1 of 1 (latest)

tired rivet
#

Please tell me, is it possible to somehow track the number of tanks / healers / dd in the party / raid?

dim axle
#

Possible yes, would require code though

dusty bone
#

@dim axle I'm also interested in this. Can you tell me the LUA function to read information about the role? Does it work on arena enemies as well?

lone knotBOT
dusty bone
#

Thank you, but UnitGroupRolesAssigned only works on your own groups members and I don't know how to know which player has which role when using GetArenaOpponentSpec

dim axle
#

Use the GroupRoles function is for your group, the other 2 are for arena

dusty bone
#

But how do I know which opponent corresponds to which ID? GetArenaOpponentSpec expects 1, 2 or 3 as an argument if I understand correctly. How can I find out which arena ID a unit has?

dim axle
#

1-3 is arena1-3

dusty bone
#

Yes, but how do I find out if a specific unit who's nameplate I'm changing with the WA is 1, 2 or 3?

#

Is it just something like UnitIsUnity(unit, "Arena1")?

dim axle
#

You don't really need to worry about it.

You'd make this in a TSU, you'd iterate i = 1, 3 do and provide the unit = "arena"..i