Different day and night descriptions?

Has anyone previously created code to display one description for the room if it's day and another if its night?


Yes. 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.


I'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.


The 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?


Ah. 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.


okay, 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.


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums