×
Меню
Индекс

MSFD Morrowind's time related global variables

 
GameHour     (is float global variable)
Day          (is short global variable)
Month          (is short global variable)
Year          (is short global variable)
 
These globals get set by the game and contain the current date and time.
 
The MW calendar is a little bugged (thanks to samois for the info): MW starts on Day 16, Month 7, Year 427. (16 Last seed)
The months are as follows, with the days in each month.
(Morning Star ???)
Suns Dawn 31
First Seed 28
Rain's Hand 31
Second Seed 30
Mid Year 31
Sun's Height 30
Last Seed 31
Heart Fire 31
Frost Fall 30
Suns Dusk 31
Evening Star 30
So there are 334 days in a MW year!?! Basically it seems that Bethesda screwed up their code and lost a month, Morning Star / January… It seems the mistake was simply making it "wrap" to the wrong month from Evening Star. If you manually set month to 0 it will correctly display Morning Star in the rest menu. So this could be scripted around.
 
Sample Script: Checking the time of day with the GameHour function:
Begin AfternoonTea
 
If ( GameHour >= 17 )
     If ( GameHour <= 19 )
          "Cup of Tea"->Enable
     endif
elseif ( GameHour < 17 )
     if ( GameHour > 19 )
          "Cup of Tea"->Disable
     endif
endif
 
 
End AfternoonTea