I’m having yet another problem, I’m trying to create a in-game calendar. I’m using the example 183 the hang of thursdays but so far nothing is quite working. I’m also using the extension Basic Screen Effects by Emily Short. If I can get the days to work I should be able to work out the months. Here’s the code I’m using:
[code]A month is a kind of value. The months are Mistleaf, Plumleaf, Azureleaf, Ambersun, Hazelsun, Embersun, Rimefall, Deepfall, Winterfall, Brightfrost, Shadowfrost, Blackfrost. The current month is a month that varies. The current month is mistleaf.
A day is a kind of value. The days are the First, Second, Third, Fourth, Fifth, Sixth, Seventh , Eigth, Ninth, Tenth, Eleventh, Last day. The current day is a day that varies. The current day is the First.
Table of Fancy Status
left central right
" [current day] day of [current month]" “” “”
Rule for constructing the status line:
fill status bar with Table of Fancy Status;
rule succeeds.
When play begins:
now the time of day is 11:59 PM.
Every turn:
if the time of day is 12:01 AM:
now the current day is the day after the current day.
[/code]
Quick question does Inform use 12:01 AM or 00:01 AM? Either way the status line does not seem to change with this code, any other ideas. I know I should probably be using a new rule instead of a every turn maybe you could tell me how to get the rule to work? I’ve got a feeling I’m missing something important or did something silly but I’ve been frustrated for over an hour now so all help appreciated.