1. #1

    Question about WeakAuras

    So, I've recently come over to weakauras and am shocked at how glorious this addon is. My question now is on optimisation.

    I use weakauras to track my cooldown usage, for example, Shadow Dance. I have it set up currently as four different weak auras; one for showing the cooldown; one for showing it's ready to use; one for showing the buff duration and lastly another to make it glow when it's optimal to use. The string is below

    Code:
    d4dBoaGEkeoSQ2Liu61sk0(irrZKsQhljZMkpJeCtsu15vHVjvPttyNuL9I2nr7xKmkrOAyIOgNKI8COgkLKblsnCiDqrKtjPOogfCokeTqsAPIGflPA5K6Hui9uLLjP06eHIjkvXuf1KPQMUWfvrCvkuUm46sSrri)vQSzk12HWhjrLVkPGpRsFNsmskunnsOrdrJNe5KKOWTur6AQOUhjkDBk63s5NsvnnWm3ZmdomxTj2K5m5858zMddoBRAczWP2pN7R8wFsIYCA4kAY8bkWD1TckNSyM1I7f0y6zGt4ZnKVFZsQ098YkGZ1EFM50nhWmNzXfcMzWGbhOe6l9bFQYGRIz6zGzUQwZ53SiPkNs9TTXqqVtnOWzonCfnz(af4evnjNSyM1I7f0y6zGt4ZnKVFZsQ098Ykiv6KQcbcGZIWpqspftMZw)MWc9hp9uKl0I7f0mZHrbNtz4ZD2qVguGt(MaMz6zGBiF)MLuP75LvadUcg6WOGZPm8PkxvbhnZoKcFGleMGpdoKG4ImONIjZD032gdb9oT2ApZ5AVpZCfm0v5EmMQC6MdyMZS4cbZmyWvWqNdqaowNRGHomkurvomkuXmhwiVoGEkWGRY9ymZCyH86aUe6RCg7egCyHramZzwCHGzoBhOKOUdOkh6RJdQYHRa5RfnQYfwazCylqauLlajv5EniFQYz30XH5lPkhkcuQYGbdg0RwM5QAnNFZIKQCk132gdb9o1GcN5CT3NzUcg6QCpgtvoDZbmZzwCHGzgm4kyOZbiahRZvWqhgfQOkhgfQyMdlKxhqpfyWv5EmMzoSqEDaxc9voJDcdoSWiaM5mlUqWmNTdusu3buLd91Xbv5WvG81Igv5clGmoSfiaQYfGKQCVgKpv5SB64W8LuLdfbkvzWGb3rFBBme070A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tyH(JNEN5Si8dK0tXK5e(Cd573SKkDpVScsLUpAimFhNSyM1I7f0y6DMdjiUid6PyYCfzOf3lOzMdJcoN3Bc07SHEnOadgm4qqpdkAizgKa
    ---

    My question is if there's anyway to stream line this? Do I really need four different weak auras for every single state of the cooldown?
    I am the lucid dream
    Uulwi ifis halahs gag erh'ongg w'ssh


  2. #2
    I kind of brute force my way through weakauras, using custom code rather than figuring out how to do things in the UI - you could do it via custom code, just define a custom trigger that fires off all of the scenarios, and then define actions that check the current state to return the right thing to display.

    You should be able to do it through the UI though, my RL makes multi-step weakauras for our raid all the time - I really need to store my weakaura strings somewhere I can access from work - will try and find later :P
    Last edited by rijn dael; 2013-11-12 at 01:51 AM.

  3. #3
    You can easily do some of that together but not all.

    With the way multiple triggers work, I don't think you can get it to work properly if you just add a spell cooldown trigger and a buff duration trigger. So basically you can easily combine your spell cooldown and spell ready: make one icon with two triggers, activate on Any Triggers, where Trigger 1 is Status>Cooldown Progress (Spell) and Trigger 2 is exactly the same except with Inverse checked. But your buff duration is separate and, since your "optimal" icon has its own set of triggers, that is separate as well.

    You can, as mentioned above, make custom code to fit almost everything (not sure about the glow part) into one, but unless you know Lua it will be a) difficult to code correctly, and b) probably extremely inefficient in terms of CPU usage.
    Last edited by pnutbutter; 2013-11-12 at 02:53 AM.

  4. #4
    Thanks guys, appreciate it - sadly, lua is a language I just can't get to grips with and it bugs me every day! But thanks for the tip pnutbutter, will put that to use.
    I am the lucid dream
    Uulwi ifis halahs gag erh'ongg w'ssh


Posting Permissions

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