Game Time?

Forum Archive - from http://theuniversal.net
Locked
Breosa
Posts: 3
Joined: Mon Nov 13, 2006 4:54 pm

Game Time?

Post 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
User avatar
morbydvisns
Posts: 1889
Joined: Sun Jan 30, 2005 12:51 am

Post by morbydvisns »

I've not been aware of one. I didn't find it in the manual either.
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post 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 :)
Breosa
Posts: 3
Joined: Mon Nov 13, 2006 4:54 pm

Post by Breosa »

Ah good to know another piece of the puzzle.
Locked