BLUF: I want the scrolling combat text damage/healing numbers to be relative to the player’s max health.
Using a combination of ElvUI + elvui-tinkertoolbox I have set the Unitframe and Nameplate health values relative to the player’s max health. For example, in the image below I have an actual 8,666 max health, this is shown as 100 in my unit frame. The elite mob’s health shows 376, which would be 3.76 times my max health.
(I cannot post the imgur screenshots link)
imgur com/a/rnrYeM2
This makes parsing the relative strength of mobs and players at a glance faster. Wow has a habit of exponential number creep over expansions so you feel like a titan at the end, but these raw numbers mean NOTHING! It is your power relative to others that really matters. So I have solved the health comparison, does anyone already have a solution for the damage?
Import string for tag: [health:relative] 9j5tVjiqqu8J97HxeBmu9QMEGqPQnkAKLMEALTWiqYYIzzWOx4ZEx(JfvSntczN5X8BNhd0Xuc15itMrDOobqMVm(agNkkt9zieMkpxEEFUWV(zPQwUighu8rHxDWt9z8cVe2PnC2zqohyCm6IAB8AHNRQZA5vStA9ou9(9guPFpp)CPeeyBl)lVMH6I49WKaNHXhH)IMILMwNB8L780GNhpAuxN3fUYD1mV1WvZ4dH2HPdkJfHTLBpfVVWtKInWxKnlkndRrR8pgbIR6QjAOvos7(0yRJU1Kza(EQmHHieqGtOwFt3TBTSj9h(ih9WIkpn8xI6bFRhccqY46bGFCcJVeeHvTIYC4QVBGiOnrcyUu06yLi1boQweQFlDTxq2n3YyjzUABxMSY4RBYnxBBBzswS2UPGTXkRDUBEZGyrrkD60OQzDYLX)jZ8mmnHWcZ(j
Events:
UNIT_HEALTH UNIT_MAXHEALTH UNIT_CONNECTION UNIT_NAME_UPDATE
function(unit)
local maxPlayerHealth = UnitHealthMax("player")
local currentUnitHealth = UnitHealth(unit)
local relativeUnitHealth = ((currentUnitHealth/maxPlayerHealth)*100)
local relativeUnitHealthMax = (UnitHealthMax(unit)/maxPlayerHealth)*100
local String
if not (UnitIsGhost(unit)) then
String = _VARS.E:GetFormattedText('CURRENT', relativeUnitHealth, relativeUnitHealthMax, _VARS.E.db.general.decimalLength, true)
end
return String
end