#Need help with code - show tooltip number relative to maximum HP?
3 messages · Page 1 of 1 (latest)
have you checked wago.io for this? seems like something someone would've created already
function()
local tt = aura_env.state.tooltip1 or 0 -- change from 1 as needed
local mhp = UnitHealthMax("player") or 1
return tt/mhp*100
end
Using the text %c%% and formatting %c to round as you like.