Touch of Death Weakaura

Hello! I was wondering if it was possible to create an aura for Touch of Death that would glow/animate when:

  1. The target HP bar reaches 35%
  2. The target HP bar reaches 10%

Of course there would be other basic conditions such as “target is in range” and “touch of death is ready”… But I know how to set these conditions already!

Any tip/help/advice on this will be greatly appreciated. Thanks!

First thing, add a trigger for the target health
type: Status
Status: Health
Unit: Target
Check Health box > 0 (I’m assuming that when the target is dead, you don’t want to see this WA)

Second, click the Conditions Tab and add a Condition. Let’s say the new health trigger is “Trigger 3”. Click the “If” dropdown and under Trigger 3 you’ll see Health %. Select that.

Third, select <= 35% and in the “Then” dropdown select “Set Glow Visibility” and check the box next to it (that checkbox just saves the change, it doesn’t mean Set Glow Visibility true or anything)

This will activate the Glow Settings that are on your Display Tab. Weak auras now has several built in Glow options plus a Glow Color. The “Set Glow Visibility” basically acts like Checking the “Show Glow Effect” on the Display tab.

Now to have it do something else with the Glow effect when the target is below 10% health, you would add another condition almost exactly like the above but with the Health part as <=10%.

Let’s say for under 10% you want it to glow Red and change the Glow Type. Click the Add Property once, select Set Glow Color and click the color box and Select Red. Then Click the Add Property button again, and select Glow Type and change it to Pixel.

If you don’t want the WA to just change the Glow Type and color below 10%, you want it to Glow and do a Bounce animation, that’s possible but you would need to create a second WA. Duplicate the first one. And change the original WA’s Health trigger from >0 to >10%. Then change the second WA’s health trigger to <=10%. And for the second one, click the Animation tab and under Main, select Preset and Bounce.

1 Like

Thanks so much for this!

I ended up leaving all the glows the same style (action button glow)

  • When skill is ready glow white
  • When target health is below 35% glow yellow
  • When target health is below 10% glow red

Works like a charm. I love it! Thanks! (Edited multiple times because I thought I was having problem which I have eventually solved XD)

[EDIT] I was wondering. Is it possible to make a macro that automatically targets enemies with a certain % of health? I use mouseover macro and sometimes is difficult to select the proper target to use the skill on! Not sure if I should make another topic for this issue.

[EDIT 2] I’ve just realized that ToD deals 35% of your maximum health (instead of target’s maximum health), so at this point I am wondering if there is any way to “cross check” my health and my target’s and glow when the target’s health is at 35% of my maximum health?

No. It’s intentional because Blizz wants you to be the decision maker.

Yes. Create another trigger except instead of the Target as the Unit, you would have the Player.

Then on the conditions tab in the “IF” dropdown at the the top you should see a “ALL OF” and “ANY OF” condition and this will allow you to select multiple Triggers for checks.

Thanks for this!

I think I’ve almost got it, however I need to figure out the right triggers/conditions combination, ha!

Triggers:

  • Trigger 1: This check if the action is ready to use, and if the target is valid
  • Trigger 2: Type : Status | Status: Health | Unit: Target | Health: >0
  • Trigger 3: Type : Status | Status: Health | Unit: Player | Health: >0

What I don’t understand is how I can “cross check” the triggers to make a condition to make the aura glow when my target has 35% of my maximum health

Condition 1:

IF: All of

  • Trigger 2 | Health % | <= | 35 (Trigger 2 checks my target Health)

How can I specify that the 35% has to be relative to my health? @_@

Get rid of the trigger on your/targets health then.

You can’t use the built in triggers. I’m not in front of my pc but I believe it’s a custom trigger that refreshes on every frame. It will have multiple code boxes for entering lua code, the top box controls showing, the box right below it controls hiding, and other boxes you can ignore.

Show box

function ()
   local show=false
   local multiplier=0.35
   local targethealth=UnitHealth("target")
   local myhealth=UnitHealth("player")
   if targethealth>0 and myhealth>0 and  targethealth <= (myhealth*multiplier) then
      show=true
   end
   return show
end

Hide box
function () return true end

UnitHealth will return 0 if your target dead or if you have no target.

Hopefully the above doesn’t have any syntax errors (again, not in front of my pc…)

There may be other ways of accomplishing this in Weakauras…

In case you’re curious
Lua language
https://www.lua.org/pil/contents.html

Wow api
https://wowwiki.fandom.com/wiki/World_of_Warcraft_API

or
https://wow.gamepedia.com/Global_functions

or
https://www.townlong-yak.com/framexml/live/Blizzard_APIDocumentation

Thanks for your reply! I understand little to nothing, but I wonder where I can insert the “custom function” (or whatever is called)?

I got rid of Trigger 2 and 3 (so now I have just the check for action ready/valid target).

I’m sure I’m missing something ha!