Thread: UI Help Center
View Single Post
Old 10/27/07, 7:13 AM   #36 (permalink)
 Umph
ALL GLORY
 
Umph's Avatar
 
Tauren Druid
 
Mal'Ganis
Originally Posted by Ohi View Post
I do need help with something if anyone knows about DogTags. What I want to do is this:
If my target is Alliance, I want it to say "Alliance" in blue.
If my target is Horde, I want it to say "Horde in red.
If my target is some other faction, say Stormpike Guard, I want it to say it in Green.

Is that possible? I can't figure it out
This should work (off the top of my head):
[IsFriend?IsPlayer?Faction:Color(ff0000)][IsEnemy?IsPlayer?Faction:Color(0000ff)][~IsEnemy?~IsPlayer?~IsPet?Faction:Color(00ff00)]
Basically it is: [Is the player Horde? Display red faction][Is the player Alliance? Display blue faction][Is it not a player/pet and not an enemy? Display green faction]

If you would like it to display non friendly factions as well, remove the '~IsEnemy?' conditional from the last tag.

Edit: There might be a way to combine it into a single tag, but I think it might be too complex to be worth it - either way I don't have the time to log into WoW and figure it out for you right now, so if someone else can do better go for it .

Last edited by Umph : 10/27/07 at 7:29 AM.
 
User is offline.
Reply With Quote