Also: You also want to use code and /code for your tags for this, not spoiler and /spoiler. You do not need (or want) indent tags. Just paste the code inside code tags, and your indentation is preserved.

As-is, when you copy/paste the code into a text file from the browser, all of your tabbing goes poof. Click the quote button on this post, to see the difference.
Thanks, I forgot what the actual command was to set that up.

So basically to call the function as you have it written I just have to add the line "UpdateDisplayCounters();" just before the "Waitdraw();" then put the actual function in (obvious) as you set it.

I wished I remembered that this was a thing. Its been a while since I played with the editor, and I'm still not all that good at scripting.