Curious...

Anonynn
10 Jul 2017, 20:04

Is there a way for the game to tell what day and month it is out of the year in Real Life. I would like seasonal things in my game for example to activate during certain months and days. Is that possible?

Anonynn.


TrippyJay
10 Jul 2017, 20:39

lol?


Richard Headkid
10 Jul 2017, 21:15

I've been trying to figure out how to do it using Java, but to no avail.

I would like to know how to do this as well.


DarkLizerd
11 Jul 2017, 02:42

I would say... yes...
It is in the source code for Quest...
But... getting to it may be a problem.


hegemonkhan
11 Jul 2017, 02:52

maybe this can help? (right from the 'library and code samples' forum board)

http://textadventures.co.uk/forum/samples/topic/5496/real-time-clock-uses-js


DarkLizerd
11 Jul 2017, 03:22

Well... the following does not work:
date
date()
now
now()
time
time()


Richard Headkid
11 Jul 2017, 03:30

HK,

That works!

It shows the actual time and date in a status panel.

I had to create a game with the file that was posted along with it.

Then, I had to set up each JS on its own. (I just pasted that whole section into one JS at first, but, upon reading the code in the game file, I realized each needed to be set up separately.

Now, if I can only figure out how to print that output (the time and date) via msg (""). . .


hegemonkhan
11 Jul 2017, 04:36

maybe this can be of help:

http://docs.textadventures.co.uk/quest/guides/javascript.html


Richard Headkid
11 Jul 2017, 04:45

HK,

You're pretty awesome!

I always look through the documentation first, but there's so much of it!


hegemonkhan
11 Jul 2017, 04:53

I've been around for 5 years, so I've seen/am-aware of lots of the information posted/threaded/etc here... it's just a matter of finding it... laughs. (and trying to re-learn the doc site, as Pixie is adding content and/or re-organizing it... argh-lol... I'm used to its prior organization, and am struggling to learn where everything is being re-organized to, and/or there's an old page and a new page, with the old page having some more useful info and/or links, whereas the new page doesn't), and/or Pixie is moving some of the content to the quest github page(s) and/or his-pixie's-quest github pages too.


Anonynn
11 Jul 2017, 18:50

Thanks a lot! I'll check it out :D

I appreciate all the responses!

Anonynn.