View Single Post
01-24-12, 02:54 PM   #1
unlimit
Lookin' Good
 
unlimit's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 484
SetFormattedText

lua Code:
  1. text=""
  2. if not unit:IsIncapacitated() then
  3.     if UnitIsDead(uid) then
  4.         text = "Dead";
  5.     elseif UnitIsGhost(uid) then
  6.         text = "Ghost";
  7.     elseif not UnitIsConnected(uid) then
  8.         text = "Link Dead";
  9.     else
  10.         text = format("%0.0f | %s", unit:FracHealth()*100, VFL.Kay(unit:Health()));
  11.     end
  12. else
  13.     text ="";
  14. end

Just won't workkkk, I don't know what to do to get it to show up. c_C

text should return something like (assuming I had 100k health) 85 | 85k, but all it does is throw out errors.

Damn me. D:<
__________________


kúdan: im playing pantheon
JRCapablanca: no youre not
** Pantheon has been Banned. **

Last edited by unlimit : 01-24-12 at 03:08 PM.
  Reply With Quote