Hi!
I've been trying to make my own "health text" for some time now but it always fails for some reason :/
maybe my programming skills aint what they used to be.. :P
anyways, here's what I had in mind (thinking you could help me out with the code):
on the "target health text" tab:
when I target someone:
if it is a friend, I would like the addon to show me this:
maxhp | 100% (or whatever their current percentage is)
if it is an enemy, I'd like the addon to show me this:
100% (exclude the "maxhp |"). I would like to only see their percentage in HP and exclude their exact HP since I cant see it anyway hense excluding the typical line "100 | 100%"
I find it quite hard to program normal "if" statements and stuff in this "language", Im used to Java and C++ n stuff but.. well.. maybe you could help me :)
I've been trying to make my own "health text" for some time now but it always fails for some reason :/
maybe my programming skills aint what they used to be.. :P
anyways, here's what I had in mind (thinking you could help me out with the code):
on the "target health text" tab:
when I target someone:
if it is a friend, I would like the addon to show me this:
maxhp | 100% (or whatever their current percentage is)
if it is an enemy, I'd like the addon to show me this:
100% (exclude the "maxhp |"). I would like to only see their percentage in HP and exclude their exact HP since I cant see it anyway hense excluding the typical line "100 | 100%"
I find it quite hard to program normal "if" statements and stuff in this "language", Im used to Java and C++ n stuff but.. well.. maybe you could help me :)
Thank you!
[(IsFriend ? (MaxHP:Short " | ")) PercentHP:Percent]
You can remove the :Short if you want the full exact HP.
Can you also provide the correct tag if I want friendly targets to display current / max health and enemy targets to show as just a percentage?
[IsFriend ? FractionalHP ! PercentHP:Percent]
Perfect again! thank you very much