1. #1

    [WeakAuras] Lowest Remaining Duration of Multiple Triggers

    I have a Text that has the Display Text set as %p for Progress and it has 3 triggers. Currently it shows the remaining duration of the 1st trigger, but I want it to show the lowest remaining duration of the triggers. Is that possible?

    Export/Import string:
    Code:
    dOdYdaGEcfTljP2gHkZKsmxkQMnv9nvQUTu5XeyNe0Er7g0(LQ(PkfdJszCQuQdtLHsjnyvYWPWbLeRtLsoMO6CssSqjLwQKIflkworpKIONQSmkvpxvMiuyQqMSiMoPlsr5QueUSW1LyJuKonWMvvBNqEMuYjfLMMu47qrJuk6Zq1OLunEPuxIqHBrO01iu15fP)cLETKK(TkM5eXb4Yc1q(DccZZk4aFMpJW7X284tXIbqeagwlsJZl4EC2RoVABvNFNRJlHlHiU)bQdiMbf2Yoxc4z4DPOOTYjggCYahCGOuJGtJ2kNljbOGd05XQsaoEiFerH5eXPsaoEijIttncoxr64ELmHOaQR8)G2CynzLHWouLAqChmH3a9PSwUquavUMHZR15ELmHOaQwLXh0MBwnZIfUNr49ztEerLd66Ihruyoxnodqs)vLeNH6uWbsLRabkNH3LgsUKit5)rPgbxtZSy1utyHkxbQsaoEijIkvk0orCQeGJhsI40uJGZvKoUxjtikG6k)pOnhwtwziSdvPge3bt4nqFkRLlefqLRz48ADUxjtikGQvz8bT5MvZSyH7zeEF2Khru5GUU4refMZHHtw1(RDk(B1FLf(uxgGhOPu5kqGYz4DPHKljYu(FuQrW10mlwn1ewOYvGQeGJhsIOsLkNkb44HKiUdMWBG(uwlh01fpIOWCUvK4r)153FHXPdaDqbbvQCycs060uXxLCBv5U9wIRvJg2YTFB(fBJ7C)du5QiboF)LqNuEWKdw6qsaoEiFuylU6baVUstBiEBTeNnB3TLNNBVLDB8l2g358hxcrCjG)hiO41uI46kEfqevQCYJpiIRR4varuPYjDccI46kEfqevQCQZhqLiUUIxberLk33jqbhirCDfVciIkvQCGeou9O)AQt(6VCYO)QIhGdJeQCoI4wrIh9xNF)fgNoa0bfeCzHAi)obH5zfCGpZNr49yBE8PyXaicadRfPX5fu5erH5nSNtLea

  2. #2
    Given the constraints of the WeakAuras UI, no, this is not possible. You would have to write a custom function to display the proper value.

  3. #3
    Quote Originally Posted by Xundir View Post
    Given the constraints of the WeakAuras UI, no, this is not possible. You would have to write a custom function to display the proper value.
    Ok, thanks.

    Here's the custom function I wrote if anyone is curious:
    Code:
    function() 
      local a = select(7, UnitBuff("player", "Surge of Dominance")); 
      local b = select(7, UnitBuff("player", "Dark Soul: Instability")); 
      local c = select(7, UnitBuff("player", "Rapid Adaptation")); 
      
      if a and b and c then 
          local d = min(a, min(b, c)); 
          return format("%.1f", -1 * (GetTime() - d)); 
      end 
    end

  4. #4
    Do you want this aura to appear only when you have all 3 of these auras active? If not, you can modify your if statement to
    if a or b or c then

    as well as making the following line

    local d = min(a or 100, min(b or 100, c or 100))

    to prevent nil arithmetic. This assumes your 3 auras are short buffs that are shorter than 100 seconds. In this case, it appears as if they are. If any of them are active, it will show that value instead of the default 100.

Posting Permissions

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