I have an idea that requires a global timer that continues counting up in the sidebar regardless of what passage you're in, and I'm having trouble implementing it.
I've tried using the <<timed>> macro to increment a numerical variable that gets stored in Twine's memory to stop the timer resetting with every passage load, but the problem is I can only seem to get it to increment once per passage. Is there a way I can loop this incrementation until the condition is met independently of passage navigation?
This is what I've got in my StoryCaption:
<<if $seconds lt 1000>>
<<timed 1s>><<set $seconds to $seconds + 1>><<replace "#time">>$seconds<</replace>>\
<<next>><<set $seconds to $seconds + 1>><<replace "#time">>$seconds<</replace>>\
It adds one to the $seconds variable every time a new passage is loaded. How do I make it keep running until $seconds reaches 1000?
Any assistance would be much appreciated.