I've been using weak auras for a lot of things lately, great addon, but I wanted to create a texture for targets with over X amount of "total" health, why? cause for me, levels and elite/boss tags a just part of what tells me if a target is potentially strong or not, for example: a level 90 player with 350k total hp is not exactly at the top of the food chain compared with another one with +600k.
I just wanted a custom trigger that shows when my target has over X amount of "total" hp but with a Unit Characteristics trigger the aura stops showing if the target goes below the hp number I give. I want it to track the total hp of the target whether or not it has full 100% hp.
To give an idea of what I'm trying to achieve:
I'm trying to graphically differentiate targets by superiority: Low / Normal / Elite / Boss
Low: Anything below level 20 OR with less than 1k hp
Normal: Anything over level 20 to 90 OR with over 1k hp and less than 400k total
Elite: Anything with the Elite tag OR with over 400k and less than 800k
Boss: Anything with the Boss tag OR with over 800k hp
About the Elite/Rare/Boss tags I know how to achieve it with a custom code but I know nothing about how to trigger based on the max hp too.
Any help would be really appreciated. Thanks in advance.
- - - Updated - - -
After a long time messing around with it I think I made it:
Texture > Trigger 1 > Custom
Event Type: Status, Check On: Event(s) > PLAYER_TARGET_CHANGED
Custom Trigger: change 1000 for the number you want to be the maxhp threshold
local hp = UnitHealthMax("target")
if hp > 1000 then return true end
if UnitExists("target") then return true end
Trigger 2 > Status
Unit Characteristics > Target (leave everything else unchecked).
Required for activation:
- - - Updated - - -
This way you can differentiate targets not only by tags like Elite, Rare or Boss but by maxhp, so you can quickly tell with a custom .tga whether a 90 player is actually strong with endgame gear and stats or just fresh 90 for example, I'll see if with a decent set of images I can hide and forget the hp number of my target and have a completely graphical ui. I'm freaking happy I made it, I hope it helps anyone else with a similar issue.