Thread Tools Display Modes
07-29-14, 12:45 PM   #1
Lyala
A Murloc Raider
Join Date: Mar 2008
Posts: 9
stuf unitframes hide text if hp is 100%

Hey, i'm trying to get my unitframes to hide health text when my hp is full and appear when my hp is <99%.
But i can seem to find any tags that do that. Anyone able to help? or does such an action require a custom lua code`?
  Reply With Quote
07-29-14, 02:32 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
As I don't actually use Stuf (or any other addons that use LuaTexts) I don't know if there is a built-in tag to do what you want, but you can easily input your own:

Code:
local health = Health(unit)
if health < MaxHealth(unit) then
   return VeryShort(health)
end
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
07-29-14, 03:37 PM   #3
Lyala
A Murloc Raider
Join Date: Mar 2008
Posts: 9
I managed to figure out how to do it with the built in tags though. Turns out it was me being stupid and not rading it properly. i had done it like
Code:
[hp99:perchp]
instead of
Code:
[power_if_hp99:perchp].
Thanks for trying to help though.
  Reply With Quote
11-28-14, 09:25 AM   #4
SPIRATES
A Defias Bandit
Join Date: Sep 2008
Posts: 2
where would i paste this line? I want to hide Xperl unitframe when i full health.
  Reply With Quote
11-28-14, 07:25 PM   #5
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
This thread is about Stuf Unit Frames -- not X-Perl. As far as I'm aware (and as far as I can tell from reading its download page) X-Perl does not support LuaTexts.

Also, LuaTexts is a text tagging system -- it won't help you hide or show a whole frame.

Finally, it is not possible, by any means, to hide or show a unit frame (or any other secure frame) based on a unit's health while in combat, only outside of combat.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » stuf unitframes hide text if hp is 100%


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off