#Ingame time

1 messages · Page 1 of 1 (latest)

lament fractal
#

Hey!

I currently need a system for a custom ingame time.
1 real hour -> 15 minutes ingame

Alrady tried something but thats not that efficient ig:

every 1 minute:
add 4 to {min::server}
if {min::server} is higher or equal to 60:
set {min::server} to 0
add 1 to {hour::server}
if {hour::server} is equal to 24:
set {hour::server} to 0

If I now check the current time, it obviously says something like "0:0"

Any1 got a better idea how to do this system or is there a way to fix my "0:0" problem?

chrome briar
#

my question is what purpose will this have? Reason I ask: 1 minute on the server using just every minute is a real minute, not a Minecraft minute

lament fractal
#

The ingame time should increase by 4minutes every 1 irl minute

dreamy pebble
#

i guess then on load: while 1 < 2: wait 15 seconds add 1 to {-var}

#

i wouldnt bother with 2 vars (min and hr)

#

my formatTimespan() function actually will accept a timespan or a number (in seconds), so i would use that

lament fractal
#

Isn't there a way to just increase the ingame time by 1 minute? Would be easier!