DPS Counter

Posted by VBMeireles on Sat 19 Mar 2016 02:30 AM — 2 posts, 11,720 views.

Brazil #0
I'd like to set a DPS meter up through adding up dealt damage into a variable each time the "damage message" trigger fires.

How could I solve the time calculation problem, however?

Is there a function that will return the time passed between two calls or something?
Australia Forum Administrator #1
os.time() will return the time in seconds.

Also see os.difftime().

You can find these things out by typing Shift+Ctrl+Alt+L and then type "time" into the search box.