Difference between revisions of "Category:Time Functions"
Jump to navigation
Jump to search
imported>JOG m |
imported>ShadowDancer |
||
Line 17: | Line 17: | ||
|short | |short | ||
|GameDay | |GameDay | ||
|The current day of the month | |The current day of the month (0-31) depending on month | ||
|- | |- | ||
|float | |float | ||
Line 35: | Line 35: | ||
|} | |} | ||
{|border="1" cellpadding="5" cellspacing="0" | |||
|- | |||
! style="background:#efefef;" | GameMonth | |||
! style="background:#efefef;" | Name | |||
! style="background:#efefef;" | Description | |||
|- | |||
| 0 | |||
| Morningstar | |||
| Same # of days as January | |||
|- | |||
| 1 | |||
| Sun's Dawn | |||
| Same # of days as February (28) | |||
|- | |||
| 2 | |||
| First Seed | |||
| Same # of days as March | |||
|- | |||
| 3 | |||
| Rain's Hand | |||
| Same # of days as April | |||
|- | |||
| 4 | |||
| Second Seed | |||
| Same # of days as May | |||
|- | |||
| 5 | |||
| Mid-Year | |||
| Same # of days as June | |||
|- | |||
| 6 | |||
| Sun's Height | |||
| Same # of days as July | |||
|- | |||
| 7 | |||
| Last Seed | |||
| Same # of days as August | |||
|- | |||
| 8 | |||
| Heartfire | |||
| Same # of days as September | |||
|- | |||
| 9 | |||
| Frost Fall | |||
| Same # of days as October | |||
|- | |||
| 10 | |||
| Sun's Dusk | |||
| Same # of days as November | |||
|- | |||
| 11 | |||
| Evening Star | |||
| Same # of days as December | |||
|- | |||
|} | |||
The following functions are also available: | The following functions are also available: | ||
[[Category: Function Types]] | [[Category: Function Types]] |
Revision as of 09:14, 4 July 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 (0-11) |
short | GameDay | The current day of the month (0-31) depending on 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. |
GameMonth | Name | Description |
---|---|---|
0 | Morningstar | Same # of days as January |
1 | Sun's Dawn | Same # of days as February (28) |
2 | First Seed | Same # of days as March |
3 | Rain's Hand | Same # of days as April |
4 | Second Seed | Same # of days as May |
5 | Mid-Year | Same # of days as June |
6 | Sun's Height | Same # of days as July |
7 | Last Seed | Same # of days as August |
8 | Heartfire | Same # of days as September |
9 | Frost Fall | Same # of days as October |
10 | Sun's Dusk | Same # of days as November |
11 | Evening Star | Same # of days as December |
The following functions are also available:
Pages in category "Time Functions"
The following 4 pages are in this category, out of 4 total.