1. #1

    Damage remaining to absorb with weakauras

    Firstly, do you need to be a lua wizard to use weakauras? All searches on google netted me nothing I could understand. They were just a huge wall of text with lua talk which I know nothing about.

    With that said, and I don't need to be a lua wizard, is there a way to display the remaining damage that can be absorbed with your spells? Mainly Ice Barrier and Shield Barrier.

    One of the warriors on the warrior forum who solos a lot of stuff has a really nice tracking display of Shield Barrier, which shows the icon and within the icon it shows how much damage is left to be absorbed (or something along those lines, it might be a bar that goes down, getting smaller with less damage that can be absorbed.

    I read saying you gotta tick Use Full Scan and Use tooltip "size" instead of stacks - but this doesn't even make my icon show up at all.

    Any help being thrown out will be appreciated, sorry if this topic has been brought up a lot.

  2. #2
    Weakauras can do a lot without any Lua knowledge. It's only when you want to do stuff that isn't already simplified by pre-made Triggers that you need to go there.

    I don't think it has absorb info pre-made, though.

    Since the API provides general absorb information now, it's relatively simple to get the total absorb remaining from all buffs. Is that what you want? It's a little more work to get the amount from a specific ability, but still not too bad.

  3. #3
    The Patient
    15+ Year Old Account
    Join Date
    Apr 2008
    Location
    United Kingdom
    Posts
    319
    I'm going to assume you just want a way to show your total absorb remaining (and don't really care what ability it is from).

    Make a text WeakAura, under Display -> Display Text -> type %c and press accept.

    Update Custom Text On... -> Trigger Update
    Expand Text Editor under Custom Function and add the following code:
    Code:
    function()
        local absorb = UnitGetTotalAbsorbs("player")
        
        if absorb == 0 then
            absorb = ""
        end
        
        return(absorb)
    end
    Go to the Trigger page next and do the following:
    Type -> Custom
    Event Type -> Event
    Event(s): UNIT_ABSORB_AMOUNT_CHANGED

    Custom Trigger expand this and add the following code:
    Code:
    function()
        return true
    end
    Retired in WoD

  4. #4
    Deleted
    If you want the absorb shown for one ability just do it like this:

    In the "Trigger"-options

    Type:Aura
    [v]Use Full Scan (High Cpu)
    [v]Aura Name Is Exactly: "Ice Barrier"
    [v]Unit: Player
    [v]Aura Type: Buff
    [v]Use tooltip "size" instead of stacks

    In the display option you have to type %s in the textfield (and tick cooldown if you want to see the remaining time too)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •