1. #1

    Custom animation on debuff / buff refresh help

    I got a animations for Rupture start and finish. The problem is that they only show on a fresh cast, ( aka no debuff was present ) and when it expires, but it doesn't work on refresh ( target already has debuff, so trigger doesn't get called ).

    I think i have an idea how to get it to work: add a custom lua funcion in the main animation that keeps tracking of the time left using a global variable, and
    Code:
    if (currentDuration > oldDuration)
    return customanimation
    Will that work? This is the code that is used on the START Animation. ( Custom, zoom )Basically i want to copy and paste this code to the MAIN animation and only execute if the new time is greater then the old time


    Code:
    function(progress, startX, startY, scaleX, scaleY)
    //TODO:add code to check if currentDuration > Global_oldDuration
    
        return startX + (progress * (scaleX - startX)), startY + (progress * (scaleY - startY))
    
    //TODO: Else currentDuration = Global_oldDuration
    end
    The problem is that im not familiar enough with WA / LUA to get the values that i need nor how to create a global variable.

    Hope this makes sense,

    Thanks!

  2. #2
    You can create a global variable using the Aura Environment https://github.com/WeakAuras/WeakAur...ra-Environment

Posting Permissions

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