ID:169779
 
mob
proc
Daytime()
Hour += round(Minute/60)
Minute -= round(Minute/60)*59
Day += round(Hour/24)
Month -= round(Day/31)*30
Year += round(Month/13)*12
What do you want it to do, Strawgate?
In response to Wizkidd0123
            if(global.Minute >= 59)
global.Hour += 1
global.Minute = 1
spawn()Daytime()
if(global.Hour >= 23)
global.Day += 1
global.Hour = 1
spawn()Daytime()
if(global.Day >= 29)
global.Month += 1
global.Day = 1
spawn()Daytime()
if(global.Month >= 11)
global.Year += 1
global.Month = 1
spawn()Daytime()

Same thing as that.
In response to Strawgate
Please describe it in words, Strawgate. Remember, on the forum, always be specific, clear, and informative.
In response to Wizkidd0123
I would like to remove the if statements, by doing that with the division.
In response to Strawgate
Strawgate wrote:
I would like to remove the if statements, by doing that with the division.

Yes, but what exactly are you trying to do? Keep time?
In response to Wizkidd0123
Not exactly, its a real time simulator. But it goes much faster.