First of all i'm sorry if my gramma is not correct (english isn't my native language), but i hope you unterstood the description.
HP Bar with Absorb
You need 4 identical Progressbars, but all of them with diffent functions.
The 1st Bar is the Border and Background bar. This bar is shown all time and get frame strata "Background".
If you want to see a aura every time make a custom trigger with Status > Check on...: Every frame
Trigger:
Code:
function()
return true;
end
Set BarColor Alpha to 100 (Scrollbar on bottom ), Select your Background Color and set Background Alpha to 0 (Scrollbar on top).
To Add a border check "Border".
Border Style: None
Backdrop Style: Solide
Border Offset: 13
Border Size: 8
Border Inset: 10
BorderColor and Backdrop Color: Black and Alpha 0
Our 2nd bar is the HP-Bar. As soon as you have finished the 1st bar, right click on the Aura and duplicate them.
Disable "Border", set frame strata to "Medium", change BarColor Alpha to 0 (select your favourit HP-Color as well) and BackgroundColor Alpha to 100.
The trigger remains unchanged, but you have to add a custom Duration Info.
Duration Info:
Code:
function()
return UnitHealth("player"),UnitHealthMax("player"),true;
end
The 3rd bar is much like the 2nd one, so duplicate them. Frame Strata "Low" and select your absorb Color at "Bar Color".
Trigger again remains unchanged, you only have to add the amount of absorb in the Duration Info:
Duration Info
Code:
function()
return UnitHealth("player")+UnitGetTotalAbsorbs("player"),UnitHealthMax("player"),true;
end
For the 4th bar you duplicate the 2nd one again. Frame Strata "High", Orientation "Left to Right".
Select the same BarColor as for the 3rd one.
Trigger:
Code:
function()
local isDisplay = false;
if UnitHealth("player")+UnitGetTotalAbsorbs("player") > UnitHealthMax("player") then
isDisplay = true;
else
isDisplay = false;
end
return isDisplay;
end
Duration Info:
Code:
function()
return UnitGetTotalAbsorbs("player"),UnitHealthMax("player"),true;
end
If you done this your custom HP Bar like the HotS one is done!
While writing the description i've created this aura by myself, PasteBin-Link (cannot post links until now...So just create the link with this )
pastebin(.)com/HMzPcL4q
And again...Sorry for the bad english