Jump to content

Honest Hearts - Day of arrival script possible oversight


Tang3rine

Recommended Posts

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 arrival
Set GameHour to 8.5
; Sets date for arrival
Set 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)
endif
elseif (GameMonth == 12)
if (GameDay > 31)
set GameYear to (GameYear + 1)
set GameMonth to 1
set GameDay to (GameDay - 31)
endif
elseif (GameMonth == 2)
if (GameDay > 28)
set GameYear to (GameYear + 1)
set GameMonth to 1
set GameDay to (GameDay - 28)
endif

else
if (GameDay > 31)
set GameMonth to (GameMonth + 1)
set GameDay to (GameDay - 31)
endif
endif

 

--------------------------

 

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

elseif (GameMonth == 12) [December]

if (GameDay > 31)

set GameYear to (GameYear + 1)

set GameMonth to 1

set GameDay to (GameDay - 31)

endif

elseif (GameMonth == 2) [February]

if (GameDay > 28)

set GameYear to (GameYear + 1)

set GameMonth to 1

set GameDay to (GameDay - 28)

endif

If 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 by Lt Albrecht
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...