0 votes
asked by (280 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
answered by (30.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!

commented by (280 points)
I clicked on the link but it didn't take me anywhere
commented by (30.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.

Welcome to Twine Q&A, where you can ask questions and receive answers from other members of the community.

You can also find hints and information on Twine on the official wiki and the old forums archive.

See a spam question? Flag it instead of downvoting. A question flagged enough times will automatically be hidden while moderators review it.