Tang3rine Posted December 23, 2013 Share Posted December 23, 2013 The following script ( copied directly from GECK ) is supposed to set the day / month / year of arrival in Zion.Normally it takes 14 days to travel there. ------------------------- ; Sets time of day for arrivalSet GameHour to 8.5; Sets date for arrivalSet GameDay to (GameDay + 14)if (GameMonth == 4) || (GameMonth == 6) || (GameMonth == 9) || (GameMonth == 11) if (GameDay > 30) set GameMonth to (GameMonth + 1) set GameDay to (GameDay - 30) endifelseif (GameMonth == 12) if (GameDay > 31) set GameYear to (GameYear + 1) set GameMonth to 1 set GameDay to (GameDay - 31) endifelseif (GameMonth == 2) if (GameDay > 28) set GameYear to (GameYear + 1) set GameMonth to 1 set GameDay to (GameDay - 28) endifelse if (GameDay > 31) set GameMonth to (GameMonth + 1) set GameDay to (GameDay - 31) endifendif -------------------------- What I do not understand is why when the month is February the script will skip ten months and set the date to January next year.Normally that should happen only during December.Am I missing something? This is my first time trying to script something so don't judge too hard. Link to comment Share on other sites More sharing options...
Nihilisaurus Posted December 27, 2013 Share Posted December 27, 2013 (edited) elseif (GameMonth == 12) [December] if (GameDay > 31) set GameYear to (GameYear + 1) set GameMonth to 1 set GameDay to (GameDay - 31) endifelseif (GameMonth == 2) [February] if (GameDay > 28) set GameYear to (GameYear + 1) set GameMonth to 1 set GameDay to (GameDay - 28) endifIf it's December, go back to January, go to next year, find the right day.If it's February [do the same as December]. Somebody got rushed or confused and copied the December code to February's script block when February's should be just like any other month but with only 28 days. Edited December 27, 2013 by Lt Albrecht Link to comment Share on other sites More sharing options...
Recommended Posts