What I would add is a conditional to make health color red if I have the necessary rage. I'd take into account that execute costs 10-15 rage (depending on talents) and most other skills cost 10 to 20 rage (10-15 for heroic strike; 20 for cleave). I'd say if you ever have more than 30 rage (heroic strike + execute) it's red; if it's 15-30 it's yellow; if it's 0-15 it's white.
Anyways, I gotta be honest. I've had some finnicky results trying to get an effect similar to the one you want. I'm afraid I can't give you a more solid answer at this point. I'd love to see what you come up with when you do get it working.
[percenthp:isless(35)?text(Low Health!):red] -- not .35, but 35 since it's rendered as a whole number percentage not fractional percentage.
By the way, if you routinely let your people drop below 35% before you heal, you might want to reevaluate your healing. I was working on something similar for myself, for showing me if I have enough rage for execute. (I also heal with my pally; that is why I have "isfriend".) What I use is this (modified for human readability):
[isfriend?....!text( -- if friend, then .... else:
[status:surehp?curhp:short:append( | )] -- status, or if i know curhp, curhp
[israge#player?curmp#player:isgreater(14)?color(ff6666)] -- if my own rage is 15 or greater (execute min), red color
[percenthp:hidezero:hide(100):percent] -- show percent (if 20% or lower, execute when I see red)
Does DogTag support weapon-speeds? e.g. adding a text tag to pitbull showing current mainhand and offhand speed?
No, unless it was lost on me. For all values DogTag supports, see /wiki/DogTag-1.0. If you are confused about how any values are used or the conditional phrases, another thread might be more relevant to that, but in any case I'll probably be able to answer because I've looked into it and have good familiarity with it.
You might want to add to that last CurMP a :HideZero, so it's blank instead of 0 if they don't have any rage.
To be honest, these days I just display maxmana; my bar is sufficient to tell me roughly whether or not I am low or if anyone else is. Certainly MissingMP won't tell me anything worthwhile. If you're a druid or draenei priest, it might be of more use, but still doesn't make sense to me.
Your health could be rewritten as the following, for a tad more functionality:
Well I like to know for future reference how much I'll need to heal them in the case that they do get hit and their bar is at 40%. If they have 10k life, I'll need to use a big heal; if they have 5k life, I'll get away with a small heal. I can know this in advance so that when I see them getting hit (but taunted off quickly) then I know reactively what heal I need to give them rather than studying the bar to see whether it says -1500 or -6000. And if they do have 10k life, I might (might) be able to get away with one more heal on one of the squishies before I give the tank a big heal.
Also it might help to determine who should tank. Help, I say, because it's not completely obvious when you see that someone has more health that they're a better tank. But it does help. And that of course doesn't take into account tank skill, which every good tank does have. And while some people have an addon to show health, so do I so I should use it rather than saying "So, how much health do you two have?" And for that reason I like to show max health for all my partymates, and health deficit rather than fractional health. Even when they're dead max health shows up so between a wipe and recovery I have their max health in mind to determine if I was doing something wrong or what.
But i want to change one thing (and don't know how).
You see the "|" prepended before the mana-display. I want, that the "|" is only displayed when mana AND HP are NOT full.
I've tried a little bit around, but found nothing... I need something like
[conditionsMPandHP?Text( | )] to put between the MissingHP and the CurMP-displays... But i don't know how to do that ("conditionsMPandHP").
Can somebody help me?
PS: i think the DogTag-Sequence is already very useful, but i want to make it perfect (for me *g*)
Negate takes care of the initial negative sign; what you needed is prepend( | ). Even so, instead of negate you could still have done prepend( | -) so that it prepended a pipe character as well as a negative, if you want to avoid negate. Also that Hide(100) works to hide CurHP only if CurHP = 100, not when at maxhp.
I'm kinda curious as to why you might want to show health and mana only when it's not at max. It makes sense to a non-healer, I guess, but for that I would just not display curmp either way, and I'd probably not display curhp either. /shrug
Malice, your UI looks awesome. Where do your party frames appear when you're in a party? I'm interested to know what addons you have. My problem is that when I see a UI like that, I wonder if it has all the addons I have (and I know it doesn't), but I don't want to part with all the addons I have. :(
The HideZero doesn't work because it's applied to the MaxMP, I think, which means it can't at all work unless it's an enemy non-mana class. But you already filter that out with ~IsEnemy. Maybe try this:
But I would rather say
In such a case it'll show current mana/energy/rage/focus on the target whether enemy or not, and if it's a friend, it'll show max mana but not energy/rage/focus. Is that your intent?
Tor target frames, I have:
[SureHP?Status:Append( | )!Status][SureHP?MaxHP:Short:Color(66cc66)][IsFriend?MissingHP:HideZero:Short:Color(cc6666):Prepend( | )!~IsMaxHP?~Status?CurHP:Short:Prepend( | )][~IsFriend?~IsMaxHP?~Status?PercentHP:Percent:Color(9999cc):Prepend( | )]
* If the target is dead, ghosted or soulstoned, it will say "Dead | 6738" if they have 6738 health normally.
* If an enemy target is a little low on health but not dead, "6738 | 3452 | x%" if they have 3452 health, and of course the x would be a value I really don't care to calculate.
* If I don't know how much health they have but they're at 100% health display is blank other than the bar.
* If the unit has full health and I know how much health, it displays only their max health.
For player, party, and raid frames:
[Status:Append( | )][MaxHP:Short][MissingHP:HideZero:Short:Color(ff7f7f):Prepend( | )]
Everything is pretty much similar to above, but just without the "IsFriend?" conditionals. (I'm a healer, so I like to know how much I need to heal them for, and current hp for my friends is rather irrelevant.)
Edit: I have revamped my sequences to make better use of the information. Also, I feel that it's in a more legible format.
Health: To make it more readable, I broke it into segments:
[SureHP?Status:Append( | )!Status] -- include a divider if max hp is known
[IsFriend?SureHP?MaxHP] -- friend's health, if known
[IsFriend?SureHP?~Status?MissingHP:HideZero:Color(6666cc):Prepend( | ) -- live friend's health deficit, if known
[IsFriend?~SureHP?~Status?PercentHP:Percent:Prepend( | )] -- live friend's health percent, if max is not known
[IsEnemy?SureHP?Status?MaxHP] -- dead enemy's max health, if known
[IsEnemy?SureHP?~Status?CurHP:Short] -- live enemy's curhp
[IsEnemy?~IsMaxHP?PercentHP:HideZero:Percent:Prepend( | )] -- non-dead, non-full enemy's health percent