#Text format options Unit or Guid doesn't work if unit not on same realm

24 messages · Page 1 of 1 (latest)

winter rune
#

The Format Options on Text when using format : Formats %unit or Formats Player's %guid doesn't work on players from other realm than mine (no matter the options choosen above) it just doesn't display any text at all, but It work with player in the same realm ! Using it with displayed text : %1.unitName for example.

final gyro
#

Straight from a default trigger I presume?

winter rune
#

Yep, I have only one trigger set as an Aura, Smart Group, Buff

final gyro
#

I assume that uses WAs own class colour wrapper to format the text.
And that should only return an uncoloured name if it can't get the Class from UnitClass

#

Out of curiosity, can you do:
/run print(WeakAuras.WA_ClassColorName("player")) in chat?

#

Forgot a bracket

winter rune
#

It Works perferctly !

final gyro
#

And now target someone else and do

#

/run print(WeakAuras.WA_ClassColorName("target"))

#

Someone from a different realm

winter rune
#

nothing show up when targeting someone from another realm ^^

ruby ledge
#

A name is not a unit.

#

Do not use unit formatting for a name.

#

There is a perfectly fine unit replacement. Do use the unit replacement. A name is not a unit.

winter rune
#

Ok, so i'll try with %1.unit maybe ?

ruby ledge
#

Yes.

final gyro
#

Didn't you say you used unit at the start?

ruby ledge
#

He used unit formatting and guid formatting. On the name

final gyro
#

Ah no, you said you used the unit format option, not the unit text replacement

#

Fuck it's too early

ruby ledge
#

The formatting is called "format %unit"

winter rune
#

Thanks for help, i'll try it 😄