Hi, I want to create an ‘‘open world’’ kind of game with cities. So I want to make a day night cycle, so that’s what I’m using.
This one is to increase the time advancement:
The fast time rule is listed instead of the advance time rule in the turn sequence rules. This is the fast time rule: increment the turn count; increase the time of day by 5 minutes.
And this one is to set the day/night cycle:
The sun is a backdrop. It is everywhere. The description is “Currently out of sight.”
Night is a recurring scene. Night begins when play begins. Night begins when Dusk ends. Night ends at 6:00 AM.
When Night begins:
say “The sun falls below the horizon and the temperature drops abruptly to well below zero.”;
now the description of the sun is “Currently out of sight.”
Dawn is a recurring scene. Dawn begins when Night ends. Dawn ends at 10:00 AM.
When Dawn begins:
say “The sun appears on the horizon.”;
now the description of the sun is “It is tiny and weak.”.
Day is a recurring scene. Day begins when Dawn ends. Day ends at 6:00 PM.
When Day begins:
say “The sun is now properly up.”
Dusk is a recurring scene. Dusk begins when Day ends. Dusk ends at 10:00 PM.
When Dusk begins:
say “The sun has passed across the sky and is on the verge of setting.”
Cratered Landscape is a room. “The ground here is [if Night is happening]dim silver, with the craters visible as darker splotches[otherwise]the color of dried blood; here and there it is also rippled by impact craters[end if]. The horizon curves visibly.”
Well first of all the "X ends at Y code don’t work for me. I know I must be doing something wrong and I need your help for that. But that is not the main problem.
The main problem is that my time of day is broken. After 11 AM is says 12 PM (this is okay), but after 11 pm it stays at 12 pm and then continue at 13,14,15,16 PM… It don’t know why it’s doing that. I tryed reinstalling Inform 7 but it’s still broken. Maybe I could use a code to fix it?
Thanks for your help .