Difference between revisions of "User:Rasikko"
Jump to navigation
Jump to search
m
→Calendar Functions
imported>Rasikko m (→Self Reminders) |
imported>Rasikko |
||
Line 131: | Line 131: | ||
== Calendar Functions == | == Calendar Functions == | ||
Various functions for dealing with the months, weeks, or days. Months in Skyrim are index based. Meaning Morning Star is Month 0, and Evening Star is Month 11. | Various functions for dealing with the months, weeks, or days. Months in Skyrim are index based. Meaning Morning Star is Month 0, and Evening Star is Month 11. | ||
Days of the week are also index based, where Sundas is 0, and Loredas is 6. One day passes on Morndas, 18th, Last Seed,4E201. The game starts at 8:00AM, Sundas, 17th Last Seed 4E 201, which is exactly 16 hours til the next day.<br /> | Days of the week are also index based, where Sundas is 0, and Loredas is 6. One day passes on Morndas, 18th, Last Seed,4E201. The game starts at 8:00AM, Sundas, 17th Last Seed 4E 201, which is exactly 16 hours til the next day.<br /><br/> | ||
Skyrim's calendar resets(first day of the year starts on middas again) every 6 years. | Skyrim's calendar resets(first day of the year starts on middas again) every 6 years, thus the average length of a skyrim year is exactly 365 days(2,190/6). | ||
<br/> | The years can be broken up into indexes with 201 = 1, 202 = 2, 203 = 3, etc, resetting back to 1 on the year 207. To find the index for the year, divide the last two digits of the year by 6 and take only the remainder. I'm working towards a formula for getting the current 'calendar' for any skyrim year. Hoping to eventually save the problem concerning [[GetCurrentGameTime - Utility]]. | ||
<br/><br /> | |||
The following function is the same as using GameMonth.GetValue(), but without using a property or [[GetValue - GlobalVariable]]. The idea behind all the following functions is to serve as an alternative to properties. | The following function is the same as using GameMonth.GetValue(), but without using a property or [[GetValue - GlobalVariable]]. The idea behind all the following functions is to serve as an alternative to properties. | ||
<source lang="papyrus"> | <source lang="papyrus"> |