Page 1 of 1

Game Time?

Posted: Sat Jun 21, 2014 4:09 pm
by Breosa
Hi,

Is there a method to get the current game year? I can see the sysRealTime and the sysGetDateText but both don't appear on the surface to tell you the current game year.

Thanks,
Breosa

Posted: Sat Jun 21, 2014 6:25 pm
by morbydvisns
I've not been aware of one. I didn't find it in the manual either.

Posted: Sun Jun 22, 2014 2:44 pm
by Mit
$gGameDay ( Number of game-days passed since 1st Jan, Yr 0 )
$gGameTime (Number of game-time seconds passed since midnight on the current game day)

For simplicity theres no leap years in our universe, so the current game year is

Code: Select all

$gameYear = $gGameDay / 365
A full list of system values is here:
http://theuniversal.net/worldmanual/dok ... tem_values
Further documentation will follow eventually :)

Posted: Sun Jun 22, 2014 3:19 pm
by Breosa
Ah good to know another piece of the puzzle.