#Hello all,

2 messages · Page 1 of 1 (latest)

lime salmon
#

I'm working on a WeakAura that when I level up shows the total played time for the character. I already have a trigger that works on level up and it displayed the played time in the chatlog just as if you typed /played

What I would like if possible though is to show the total time played in the middle of my screen. To make it show in the chatlog I am doing a call to
RequestTimePlayed() and I know that the info is in the event PLAYED_TIME_MSG.

What I can't figure out is how to pull the values and put them into my Text weak aura.

Appreciate any help anyone can offer,
Thanks!

worldly linden
#

Custom trigger on PLAYED_TIME_MSG

function(event,totalTimePlayed,timePlayedThisLevel)
    if event == "PLAYED_TIME_MSG" then
        aura_env.timePlayed = totalTimePlayed
        return true
    end
end

use %c in a text field for the aura and in that custom text field

function()
    return aura_env.timePlayed or ""
end