0 votes
by (360 points)
I want to make my game have events that triger at certain times, but I dont want something going so far indepth as to have month, years, and seconds. I was just wondering how I could have a system that only doesn monday through friday and time like morning, afternoon... or at most advanced a 12 hour clock.

1 Answer

0 votes
by (44.7k points)

I have a bunch of Twine/SugarCube sample code for how to work with time here.  That's a Twine project, so you could download that HTML and import it into Twine 2 if you want to take a look at the page source or anything.  (Also, you can click "Jump to Start" in the UI bar to see other sample code in that project.)

Hope that helps!

by (360 points)
I clicked on the link but it didn't take me anywhere
by (44.7k points)
edited by

The link works for me.  Try this longer version.

EDIT: Heard from someone else who also had a problem.  I guess there was some temporary problem with the site.

...