[PvPRank ~= Text(, Champion of the Naaru)] [IsPlayer ? [PvP ? NameHostile ! [Name:ClassColor] ] ! [IsPet ? NameHostile ! [Status ? [Name:StatusColor] ! NameHostile] ] ][PvPRank = Text(, Champion of the Naaru)][Realm:Prepend(-)]
=>
((if IsPlayer and not PvP then
ClassColor
else if PvP or IsPet or not Status then
HostileColor
else if Status then
StatusColor) Name [White] Realm:Prepend("-")):PvPRank
[PvPRank ~= Text(, Champion of the Naaru)] [IsPlayer ? [PvP ? NameHostile ! [Name:ClassColor] ] ! [IsPet ? NameHostile ! [Status ? [Name:StatusColor] ! NameHostile] ] ][PvPRank = Text(, Champion of the Naaru)][Realm:Prepend(-)]
=>
((if IsPlayer and not PvP then
ClassColor
else if PvP or IsPet or not Status then
HostileColor
else if Status then
StatusColor) Name [White] Realm:Prepend("-")):PvPRank
sweet that works, thx much! and much cleaner then the old tag, lol
HasAura seems to becoming less and less buggy over time, thanks for working on it. Still it's not updating in realtime so it needs more fixing. Right now with my self-buff display code it's only updating when I target myself. If I have myself targeted and gain or drop a buff it will not update until I drop target and then re-target myself. It will only ever update what buffs you have when you target yourself.
For reference, the code I'm using on my player frame is as follows:
[outline (if HasAura("Arcane Intellect") or HasAura("Arcane Brilliance") then
".":Color("008aff")
end) (if HasAura("Power Word: Fortitude") or HasAura("Prayer of Fortitude") then
".":White
end) (if HasAura("Divine Spirit") or HasAura("Prayer of Spirit") then
".":Yellow
end) (if HasAura("Mark of the Wild") or HasAura("Gift of the Wild") then
".":Color("ff00ce")
end) (if HasAura("Shadow Protection") or HasAura("Prayer of Shadow Protection") then
".":Color("8300fd")
end)]
Also, [TalentTree] and [TalentSpec] currently only seem to show my own spec and (I think) the spec of people in my party/raid. I'm going to assume it's an issue with the talent lib and not DogTags, but I figured I'd note it here just in case.
EDIT: It also seems to update HasAura when I mouseover the unit frame. It just doesn't continually update the auras when I'm not interacting with the frame.
i'm trying to get a mouseovertarget thing working, and i am close but it's still not doing what i want :)
here's how i can type out what i want
if my mouseover is enemy
and if my mouseover has a target
print out a line that looks like
"Target: mouseovertarget"
so i want to mouse over an enemy, and if he has a real target (not his mouseover target), show me what that target is. otherwise, dont print a line with anything.
Assuming you want that on a CowTip line, you can just use [~IsFriend?Target:Exists?("Target: " Target:Name)]
that works perfectly (yes, in cowtip!), thank you very much!
can you help me understand the syntax though? is the "mouseovertarget" that i was trying to use somehow understood in your code? other than that, it makes sense :)
The Target tag basically returns the unitid of the current unit plus "target". In CowTip, the default unit is "mouseover" since you usually want your tooltip to show information about the person you're mousing over. Therefore Target is equivalent to "mouseovertarget", and Target:Exists is just another syntax for Exists(unit=Target).
I chose those tricks to make the tag a bit shorter and more readable; they're really just shortcuts. If you wanted to, you could write the same tag as [~IsFriend?Exists(unit="mouseovertarget")?("Target: " Name(unit="mouseovertarget"))]
Player:
Power:
Target:
I found a solution for my Target issue that works for me (thanks to Shot from the EJ forums)
using the documentation for dogtag3, i have fixed up my own tags. here are my cowtip line texts that work how i want (so far at least!).
[Name:HostileColor]
[(if Guild = "player":Guild then Green) Guild:Angle]
[ShortClassification:DifficultyColor] [Level:DifficultyColor] [if IsPlayer then Race else CreatureType] [if IsPlayer then Class:ClassColor]
[Faction]
[Status]
[Zone]
enjoy
[PvPRank ~= Text(, Champion of the Naaru)] [IsPlayer ? [PvP ? NameHostile ! [Name:ClassColor] ] ! [IsPet ? NameHostile ! [Status ? [Name:StatusColor] ! NameHostile] ] ][PvPRank = Text(, Champion of the Naaru)][Realm:Prepend(-)]
=>
sweet that works, thx much! and much cleaner then the old tag, lol
For reference, the code I'm using on my player frame is as follows:
Also, [TalentTree] and [TalentSpec] currently only seem to show my own spec and (I think) the spec of people in my party/raid. I'm going to assume it's an issue with the talent lib and not DogTags, but I figured I'd note it here just in case.
EDIT: It also seems to update HasAura when I mouseover the unit frame. It just doesn't continually update the auras when I'm not interacting with the frame.
into this, and have it do the same as above:
?
thanks!
it wokred out just perfectly, but i did add a space between the thing like so:
i'm trying to get a mouseovertarget thing working, and i am close but it's still not doing what i want :)
here's how i can type out what i want
if my mouseover is enemy
and if my mouseover has a target
print out a line that looks like
"Target: mouseovertarget"
so i want to mouse over an enemy, and if he has a real target (not his mouseover target), show me what that target is. otherwise, dont print a line with anything.
any help would be greatly appreciated!
that works perfectly (yes, in cowtip!), thank you very much!
can you help me understand the syntax though? is the "mouseovertarget" that i was trying to use somehow understood in your code? other than that, it makes sense :)
/salute
I chose those tricks to make the tag a bit shorter and more readable; they're really just shortcuts. If you wanted to, you could write the same tag as [~IsFriend?Exists(unit="mouseovertarget")?("Target: " Name(unit="mouseovertarget"))]
In want my Pitbull Party Frames to Show if the User is AFK/Offline or a Ghost, else the HP.
I just got
I?ve just tried to do it my own way, but there it?s always a syntax error.
As each condition fails it moves to the next. So if your'e not Offline or AFK or Dead/Ghost it'll show your HP.
[Offline or AFK or DeadType or HP]
Thank you :>