This one, instead, is the custom settings for target's healthfunction()
local percent = (UnitHealth("player")/UnitHealthMax("player"))*100
I took the string for player's health from internet (I don't really remember where) but I didn't find a specific setting for target's health so I just tried to put "target" where there were "player" and, beside the error you get when you have no target and you try to change setting on the whole pack (so with wa options opened), it works fine... I think there should be something like "target if exist" like in macros but I don't know how to do it.function()
local percent = (UnitHealth("target")/UnitHealthMax("target"))*100
I gonna solve the problem like this, I'll delete the 2 health bars so it won't give any problems.
---------- Post added 2012-11-04 at 03:13 PM ----------
First post updated, no more problems.