OK, I'm looking for some suggestions here. The goal is to set up a series of scripts that serve four functions and output them.
Current Moonphase
Current Weather Report (from a random script of weather outcomes for that day)
Current Time
Current Date
This is all being run on a time ratio of 1 Real day to 3 Game days. This is not to the minute, but to a time phase (eg early morning, mid afternoon, midnight). The Time output will be relatively easy, requiring getting the current hour from the server and translating that to time phase for that moment.
Moonphase I was thinking of having a variable with values from 0-27, with 0 being the start and 27 being the reset point of the phase, outputting the current moon for that game day.
Weather is a little more tricky, requiring the script to temporarily store a day and have only one result, though randomly selecting another for the next day when it occurs. Since each Real month translates to nearly a full season, it will require to translante the month to know which group to use.
The Date, however, that's where I think I'll have the most issues. How can I take a 24 hour day and turn it in to 3 sequential days, tkae a month and change it to three sequential months, and a year into 3 sequential years? Is there an easier way than writing 365 dates and comparing a variable to the list?
Suggestions are most welcome and needed :)
Current Moonphase
Current Weather Report (from a random script of weather outcomes for that day)
Current Time
Current Date
This is all being run on a time ratio of 1 Real day to 3 Game days. This is not to the minute, but to a time phase (eg early morning, mid afternoon, midnight). The Time output will be relatively easy, requiring getting the current hour from the server and translating that to time phase for that moment.
Moonphase I was thinking of having a variable with values from 0-27, with 0 being the start and 27 being the reset point of the phase, outputting the current moon for that game day.
Weather is a little more tricky, requiring the script to temporarily store a day and have only one result, though randomly selecting another for the next day when it occurs. Since each Real month translates to nearly a full season, it will require to translante the month to know which group to use.
The Date, however, that's where I think I'll have the most issues. How can I take a 24 hour day and turn it in to 3 sequential days, tkae a month and change it to three sequential months, and a year into 3 sequential years? Is there an easier way than writing 365 dates and comparing a variable to the list?
Suggestions are most welcome and needed :)
