1. #1

    complex weak aura, can it be done?

    So i figured i would be able to do this through a clever use of triggers but its not working out.

    basically what im looking for is an icon, showing stacks for Tormented Souls, and i want it to change between red and green based on various conditions.

    Red if:

    Souls are <=3
    Deadwind Harvester (buff) has >=3 seconds left
    Soul Harvest CD has < 30 seconds left
    Soul Shards <=2

    Green if (basically the opposite):

    Souls are >=4
    Deadwind Harvester has <=2 seconds left
    Soul Harvest CD has >30 seconds left
    Soul Shards >=3

    Looking at it now im guessing this would need to be an LUA thing if its even possible. I know it seems like micro managing but the color of it would pretty much tell me 4 different things at a quick glance also.
    Last edited by vaeevictiss; 2017-08-20 at 08:34 PM.

  2. #2
    i recoment doing 4 seperate buttons close to each other, kinda like the start "traffic-light" in racing (don't now the correct term)
    so you can judge condition 1 to 4 independently. then you would only need to remember what buttons is for what condition

  3. #3
    Please wait Temp name's Avatar
    10+ Year Old Account
    Join Date
    Mar 2012
    Location
    Under construction
    Posts
    14,631
    Just set up 2 different auras with 4 triggers each, and then set one to only show if all 4 triggers are active, and one to show if any is active.

  4. #4
    As others have said it would be easier than doing it all in one but if you do go that route of wanting an all in one you would end up with 8 triggers and using custom trigger logic and custom colour code

    Trigger Logic:
    Code:
    function(t)
    return (t[1] and t[2] and t[3] and t[4]) or (t[5] and t[6] and t[7] and t[8])
    end
    Custom animation you would do the same slightly doing

    Animation - Main - Colour - Custom Function
    Code:
    function(p,r,g,b,a)
        local t = WeakAuras.triggerState[aura_env.id].triggers
            if (t[1] and t[2] and t[3] and t[4]) then
               r,g,b = 1,0,0
            else
              r,g,b = 0,1,0
             end
        return r,g,b,1
    end
    Dry code so not tested but should work hopefully

Posting Permissions

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