Hi -- i am trying to have a tick mark on my main hand weapon swing timer progress bar that shows me the relative timing of my off hand. I have two triggers, 1 is mainhand 2 is offhand. My thinking is that I could achieve this by calculating the difference (diff) between the two and placing the tick marker with an x offset from the right of my progress bar, see picture where i have it set to a static value. I am novice coder but here is my draft how I thought it could work, can someone help me please fill in the gaps? 😄 would be much appreciated.
function()
if aura_env.states and aura_env.states[2] and aura_env.states[1] and
aura_env.states[2].expirationTime and
aura_env.states[1].expirationTime then
diff = aura_env.states[1].expirationTime-aura_env.states[2].expirationTime
if diff<0 then
return false
else
*** put tickmark in progress bar with x-offset = diff anchored to the right end of the progress bar.***
end
else return true
end
end