Working with time

Post » Sat May 28, 2011 3:35 am

Alright, so lets say that my quest tells me to come back in a day's time. I set a short variable "day" to GameDay and then test if GameDay >= day + 1. This works perfectly, as long as it isn't the end of the month.
If, for example, it is the final day of the month, the day variable will have a value of 31, for example, while the GameDay will never be above that (as 31 is the top value). Any suggestions? I suppose I might also test for the month, but I suppose that once if it gets the value of 12 I have the same problem.
User avatar
Karl harris
 
Posts: 3423
Joined: Thu May 17, 2007 3:17 pm

Post » Sat May 28, 2011 9:31 am

Use http://cs.elderscrolls.com/constwiki/index.php/List_of_global_variables.
User avatar
Da Missz
 
Posts: 3438
Joined: Fri Mar 30, 2007 4:42 pm


Return to IV - Oblivion