Difference between revisions of "Category:Time Functions"
Jump to navigation
Jump to search
imported>JOG |
|||
Line 1: | Line 1: | ||
Several global variables | Several global variables deal with time: | ||
{|border="1" cellpadding="5" cellspacing="0" | |||
|- | |||
! style="background:#efefef;" | Type | |||
! style="background:#efefef;" | Name | |||
! style="background:#efefef;" | Description | |||
|- | |||
|short | |||
|GameYear | |||
|The current year (the game begins in 427) | |||
|- | |||
|short | |||
|GameMonth | |||
|The current month (1-12) | |||
|- | |||
|short | |||
|GameDay | |||
|The current day of the month | |||
|- | |||
|float | |||
|GameHour | |||
|The current hour (0-23 hours) | |||
|- | |||
|short | |||
|TimeScale | |||
|Minutes that pass in-game within one minute of real-life | |||
|- | |||
|short | |||
|GameDaysPassed | |||
|How many days have passed in the current game. | |||
This is most useful in tracking the passage of time in scripts. | |||
|- | |||
|} | |||
The following functions are also available: | The following functions are also available: | ||
[[Category: Function Types]] | [[Category: Function Types]] |
Revision as of 15:53, 13 June 2006
Several global variables deal with time:
Type | Name | Description |
---|---|---|
short | GameYear | The current year (the game begins in 427) |
short | GameMonth | The current month (1-12) |
short | GameDay | The current day of the month |
float | GameHour | The current hour (0-23 hours) |
short | TimeScale | Minutes that pass in-game within one minute of real-life |
short | GameDaysPassed | How many days have passed in the current game.
This is most useful in tracking the passage of time in scripts. |
The following functions are also available:
Pages in category "Time Functions"
The following 4 pages are in this category, out of 4 total.