View Single Post
Old 04/01/08, 8:53 AM   #53 (permalink)
Zedd
Piston Honda
 
Zedd's Avatar
 
Draenei Shaman
 
Nordrassil (EU)
Originally Posted by Toonie View Post
I've been replacing my Cowtip and Pitbull dogtags as much as I could but there's one issue I keep running into..
A simple Pitbull example should illustrate this, and if someone can help me out I think I can figure out my other errors as well as they're usually related to the same thing..

Current dogtag is the following:
(Status or HP)] | [PercentHP]%
Which is the value that should show my current and percentage hp.
Now I want it only to show if I've lost some health, and I know the tag for that should be
:hide(MaxHp)
Which works if I put it behind the Status/Hp part, or behind the Percentage part.. But I can't seem to figure out how to hide the whole line.. If I try to put it in brackets to put the Hide behind it, it starts giving Syntax errors. Which I assume, is because of the | and % in it.. Putting them between " " doesn't seem to work either.

It's probably something really stupid I'm overlooking, but if one of the more advanced users could put me on the right track I'd be very gratefull!
Try this; It isnt optimal but It works.

[Status or [if IsMaxHP then
HP:Hide(MaxHP)
else
HP "|" PercentHP:Percent
end]]
 
User is offline.
Reply With Quote