I'm sure hp% is possible, though I only have a combat/noncombat script on hand:
Code:
OnEvent=function(self,event)
if event == "PLAYER_REGEN_DISABLED" then self.bg:SetTexture(1,0,0,.5) end
if event == "PLAYER_REGEN_ENABLED" then self.bg:SetTexture(1,1,1,.5) end
end,
OnLoad=function(self)
self:RegisterEvent("PLAYER_REGEN_DISABLED")
self:RegisterEvent("PLAYER_REGEN_ENABLED")
end
(This was for my panels mod, you'll need to edit it a bit for kgpanels)