Quote from TheReyI've searched both here and using Google for a LUA-text that changes the colour of HP depending on the amount of it.
100% = Green
50% = Yellow
10% = Red
Is it even possible? Cause if not then I can stop looking for it. :)
You are looking for the HPColor helper function.
local cur, max = HP(unit), MaxHP(unit) local r, g, b = HPColor(cur, max) return "|cff%02x%02x%02x%s|r", r, g, b, cur
EDIT: You can find the complete listing of all the extra helper functions at the LuaTexts page within the PitBull WowAce project.