Interesting, it does sound like what's happening since 6 would be alphanumerically 'greater' than 53...
I know next to nothing about Lua, but looking at the DogTag code, it looks like [Level] can return either a string or number (to account for "??" levels I guess) and IsEqual() can accept either a string or number. Not sure why it's counting numeric levels a string though. Bugging it on Jira sounds like the thing to do.
Basically: if same guild as me, Cyan. If player but other guild, HostileColor. If pet and I know the happiness (i.e. my pet), HappyColor, otherwise HostileColor. If NPC, (e.g. "Innkeeper") Gray. If no guild, no blank line. Angle brackets for players, Parens for everyone else.
I seem to recall getting similar issues when I set up my Dogtags that way (i.e. breaking out the color code); try embedding in in one big tag. Just to be paranoid, I'd also put an initial [Guild?] check first to catch non-guilded players. Try this (it's close to what I use):
OK, I'm seeing something rather weird. Turned off all my addons except what's required for Cowtip and what got loaded for support. I log in, mouseover my playerframe and see Shadowform properly there. Mouse away from the frame and back again, no problem. Mouseover an item, static object, or ability, and back to my playerframe, still no problem. However, the moment I mouseover another unit (NPC or player didn't seem to matter), Shadowform text doesn't show up anymore when I mouseover my playerframe. The addons I had active were:
No joy. I just tried calling [HasAura()] directly instead of using the alias, but it still won't show unless I specify a unit (except mousover, figures). I wonder, since it works for you and I'm using the same tags, if I'm seeing a conflict with another addon. *sigh*
Try [IsShadowform?Text(Shadowform)] I think all [IsShadowform] returns is true/false, though I may be wrong...
I actually started out by using the tag you suggested, and noticed it wasn't working. That's when I experimented with just [IsShadowform] to simplify things. Based on the behaviour I've seen when I make it work with the #player unit specifier, I think it's supposed to return either null or the string "Shadowform" (and I guess similar with the other aura tags).
The aura DogTags seem to be not working (IsShadowform, HasSoulstone, etc.). When I use [IsShadowform], I get nothing when mousing over my priest (who is in Shadowform). Interestingly, if I use [IsShadowform#player], then it works (except, of course, it always shows my own status, rather than that of whatever I'm mousing over). Thought I'd be clever and use [IsShadowform#mouseover], but again, I get nothing. Anyone else seeing this?
In any case, what seems to be the only remaining problem is DifficultyColor. It won't work at all on a simple mouseover, but will work on a target frame mouseover for a few seconds before turning back to white. Setting a level to a colour manually works perfectly, however.
Mine seem fine. Could you post the line text you're using?
ok, here's the trick, i would like to have a TargetingList with all those targeting colored with their class color.
I've tried something like [TargetingList:ClassColor] but with this, they're all with the color of the target they are targeting, and not their own color :)
Anyone knows if what i'm asking is possible ?
This can be done (the centering thing, I don't think can, though you could try and simulate it using whitespace perhaps?). Try this (untested!):
Basically, you build your own TargetingList by going through the party, seeing if they're in DogTag's TargetingList, and displaying it with the class color. This will only have spaces between the names, not commas like the original. It'd be possible to add those too, but painful due to all the checking required.
As an aside, here's the "Target of" line I use (you'll notice I don't care about party class coloring, but I *do* care if my pet is targeting. I also don't want to see anything unless I'm in a group or have a pet). It could probably be improved, but works for me...
[InGroup?[~IsUnit(pettarget)?NumTargeting:HideZero:Prepend(Target of ):Append(:):Gray!Text([HappyText?NumTargeting:Add(1):HappyColor!NumTargeting:Add(1):ClassColor#player]):Prepend(Target of ):Append(:):Gray]!IsUnit(pettarget)?Text([HappyText?NumTargeting:Add(1):HappyColor!NumTargeting:Add(1):ClassColor#player]):Prepend(Target of ):Append(:):Gray]