Tracking days passed?

Post » Wed May 11, 2016 9:04 am



Trying to make a small house mod that lets you commission and build a house, similar to the Great Houses, for the Imperial Legion questline. I've got all the framework of the quest down - I'm able to do it, start to finish, with only one problem. The script that's supposed to track the days passed doesn't seem to do anything, and I can go from paying for the thing to getting my key without closing the dialogue window.


Does anyone know how to handle the passage of time via scripting? I tried putting two local variables on the NPC who gives the quest, one for the day he's paid and one to flag that the house is ready. When you make the payment, it sets the DayPaid to the current game day (using the Day global), and sets the house ready flag once (Day - DayPaid >= 14).


Any ideas as to why this isn't working?




User avatar
Milad Hajipour
 
Posts: 3482
Joined: Tue May 29, 2007 3:01 am

Post » Wed May 11, 2016 7:35 am

According to Morrowind Scripting for Dummies 9.0, there is a short global variable "DaysPassed" that comes with Tribunal.esm. This contains the number of days since the game started. The global variable "Day" is just the current day of the month. Hope this helps.

User avatar
CORY
 
Posts: 3335
Joined: Sat Oct 13, 2007 9:54 pm

Post » Wed May 11, 2016 3:12 pm

Hrm, I didn't know that about the Day variable. But I know that days can be tracked without Tribunal dependency (i think DaysPassed might be part of a quest in the expansion, not certain though). I'm just wondering if anyone knows how the GH quests do it, or what the relevant scripts are, because all I can find are variable flags, no actual method of tracking time.

User avatar
ladyflames
 
Posts: 3355
Joined: Sat Nov 25, 2006 9:45 am

Post » Wed May 11, 2016 9:14 pm

Well DaysPassed is the best and obvious way to do it.


If you don't want to use that for some reason, there's also global variables for "Day", "Month", and "Year".

User avatar
christelle047
 
Posts: 3407
Joined: Mon Apr 09, 2007 12:50 pm


Return to III - Morrowind

cron