proc
Time()
spawn(72)
if(TimeM<59)
TimeM+=1
else
TimeM=00
spawn(4320)
if(TimeH<12)
TimeH+=1
else
TimeH=0
Day+=1
mob/Stat()
stat("Date","[Day]")
stat("Time","[TimeH]:[TimeM]")
Problem description:
I'm wondering how to make it so that the time updates in the statpanel every time(or every now and then) the time proc changes the time variables. At the moment, the Time stat is stuck at 0:0
Any help is appreciated.
That works. When the world starts up, it runs in the background a loop (1s delay) that counts. Every second s gets +1 in value, and everytime it exceeds 59 (60+) it resets to 0 and makes m +1. Of course, there are many better ways of doing this, but I took the way that seemed most similar with yours. I hope it helped.