Different day and night descriptions?
crystalwizard
27 Jan 2017, 16:45Has anyone previously created code to display one description for the room if it's day and another if its night?

Anonynn
27 Jan 2017, 20:49Yes. If you check the code sample in the code sample and libraries forum; "Simple Weather" etc. I also have a "Day/Night Cycle" in there.
Anonynn.
XanMag
28 Jan 2017, 16:27I've got a 7 period day that cycles in my WIP. It is actually coming along quite nicely. If you want more help than what Anonynn has directed you to, let me know.
crystalwizard
28 Jan 2017, 18:47The first question that comes to mind is how long is a tick in this code? If I want day to last for 30 minutes, then night last for 30 minutes, how long is that in the actual game counter?

Anonynn
28 Jan 2017, 19:13Ah. I designed my Night/Day Cycle to change every time the player leaves or enters a room but that is an option for the designer. You can keep the same time of day if you don't add the code to a room's entrance or exit scripts. I did it that way because I figured "travel" into the changes and it also makes it possible for perceived long and short weather effects as well, just like how sometimes storms don't last for a day or could last for several days.
As far as timer intervals...I'm not sure but you can probably set it up to be a "timer" instead of a "turn-script" like I have. It would be 1800 seconds.
crystalwizard
28 Jan 2017, 20:25okay, thanks. I'm still just building rooms (the problem with building 500+ rooms is that you then have to describe 500+ rooms), and a long way from working on the game mechanics, but I'll be back to this at that point.