//This is the ticker itself,simple,really.
proc
Time()
if(second<60)
sleep(3.25)
second++
if(second==60)
minute++
second=0
if(minute==60)
hour++
minute=0
//world<<"[hour]:[minute]:[second]"<--I used this and then logged the session.
Time()
var/second=0
var/minute=0
var/hour=0
//and this is how I represent the second,minute and hour vars in a stat
mob
Stat()
statpanel("Uptime")
if(!minute&&!hour)
stat("Uptime:","[second] Seconds")
if(minute&&!hour)
if(minute>1)
stat("Uptime:","[minute] Minutes,[second] Seconds")
if(minute==1)
stat("Uptime:","[minute] Minute,[second] Seconds")
if(hour)
if(hour==1)
if(!minute)
stat("Uptime:","[hour] Hour,[second] Seconds")
if(minute==1)
stat("Uptime:","[hour] Hour,[minute] Minute,[second] Seconds")
if(minute>1)
stat("Uptime:","[hour] Hour,[minute] Minutes,[second] Seconds")
if(hour>1)
if(!minute)
stat("Uptime:","[hour] Hours,[second] Seconds")
if(minute==1)
stat("Uptime:","[hour] Hours,[minute] Minute,[second] Seconds")
if(minute>1)
stat("Uptime:","[hour] Hours,[minute] Minutes,[second] Seconds")
Problem description:
After logging,I found out that the ticker,and the entire game closes down after exactly 18 minutes and 3 seconds.I'm pretty sure it's a problem with my stat representation of the vars,but I can't seem to figure out where I've gone wrong.I know it's something really simple aswell,but I just can't seem to put my finger on it.Any help would be appreciated,thanks.