Difference between revisions of "User:Rasikko"

Jump to navigation Jump to search
178 bytes added ,  13:50, 29 March 2020
imported>Rasikko
imported>Rasikko
Line 187: Line 187:
*Final time frame: 12AM - 8AM
*Final time frame: 12AM - 8AM
*Conjunction: 8PM - 4AM<br>
*Conjunction: 8PM - 4AM<br>
The final and conjunction(when both moons rise and set together) occur on the same day. In order to find which time frame Secunda is currently under, take the total days passed since Morning Star, 1, 201 and use the following equation: DaysPassed % 6
The final and conjunction(when both moons rise and set together) occur on the same day. <br>
::Will put info here when it's been figured out.::<br>


To calculate the current moon phase each day:
To calculate the current moon phase each day:
Line 194: Line 195:
Float fGameDaysPassed = Game.GetFormFromFile(0x00000039, "Skyrim.esm") as GlobalVariable
Float fGameDaysPassed = Game.GetFormFromFile(0x00000039, "Skyrim.esm") as GlobalVariable


return ((fDaysPassed % 24) / 3) as int
return (((228 + fDaysPassed) % 24) / 3) as int
EndFunction
EndFunction
</source>
</source>
This will return a number between 0 and 7, which each presenting a phase. New Moon is 0, and Full Moon is 4 for example. As the phases last 3 days, the return value will reflect this as well. The value of 228 is the number of days from Morning Star 1, 201 to Last Seed 17.


== Lunar Functions ==
== Lunar Functions ==
Anonymous user

Navigation menu