Help with adding months into a day/time cycle

Are you using Twine or tweego?

If you are using Twine, just paste the entire contents of mqbn.js into your game’s JavaScript section.

If you are using Tweego, drop mqbn.js into your js folder with all your other js files.

I’m using twine. I’ll do that right now, thanks.

I pasted it into Story JavaScript. What do I do now?

There are instructions for use.

The minimum you need to do is:

Put <<datesetup>> in your StoryInit passage

Set the initial date and time with <<dateset>>. If you want it set to real time, do <<dateset "now">>

Use <<date>> where you would like the date printed out

Use <<dateadd>> when you want to change the time

For example:

:: StoryInit
<<datesetup>>
<<dateset "now">>

:: Start
The current time is <<date>>

<<link [[Wait an hour|One hour later]]>>
   <<dateadd "1h">>
<</link>>

:: One hour later
The current time is <<date>>

Okay, so I did that, but when I open the game to test it, I get the error:

Error [StoryInit]: macro <<datesetup>> does not exist. 

I get the same error for <<date>> and <<dateadd>> as well.

And you definitely pasted the code, as is, into your Javascript area?

Date.js also needs to be dropped in javascript code correct?

Yes, that’s the bit that I meant needs to be there.

It sounds like something is wrong with what’s in your story js if it doesn’t recognise the macros at all