Twine Version: 2.3.16
Story Format: 2.36.1
My question is twofold. 1. What is the best method (for an inexperienced Twiner) to show the time and date for in-game playing, and 2. How best to have time pass when navigating to parts of the game, either via clicking on a map for by clicking a passage button/link?
My code so far is thus:
In StoryInit I have this:
<<set $CurDate to new Date('August 19, 1575 23:15:30')>>
I can’t remember where I saw this code, but it seems to work.
In StoryCaption, I have this:
Date: <<print $CurDate>>
In StoryStart, I have this:
<<nobr>><<set addMinutes(90)>><</nobr>>[[I need to find the hotel where my parents are staying.|Hotel]]
My initial plan was to have the above code for all links, so I could control how much time has passes from the current location to the linked location, but it seems like a long winded way of doing it. Also, if I later need the change the period of time from one location to the next, I would obviously need to revisit every link to change it as well, so it seems like there must be a better way to do this. However, if the above is actually the best method for me, have I added it to the button/link correctly?
I eventually want to have events happen at certain times, maybe also at certain dates, but I also want to have some events unavailable due to the time of day. But I have the sneaking suspicion that I am setting myself up for failure later if I do it the way I have outlined above.
I have some small HTML5 experience, but less Twine experience, so if you could include the specific passage names I may need to adjust/add/remove, please make it clear. If there is a way to misinterpret an answer, I will find it.
Thank you in advance.