LorDuBulA
The reason that bit of script is included is because character ageing is tied to the switch from winter to summer.
On the first turn, its summer, so at the end of the turn it changes to winter. This switch causes no ageing, so the only code required is the code to change the season back to summer.
At the end of the second turn, the same switch happens, no code is required therefore.
On the third turn on the other hand, the switch is from winter to summer, yet we don't want the characters to age. Because of this, we need get rid of that switch. I did this by changing the season just before the switch.
Finally at the end of the last turn, we want the characters to age anyway, so the code isn't needed.
Hope that explains it.
dsrow1
The purpose of the while loop is to ensure that the script stops until the next turn. Without it, the entire script would run in one turn, leaving you on the final year.
The if loop is purely for reload purposes. When you load a game and run the script, the script will run from the beginning. It will skip past the while loops as the save game saves the turn number, but without the if loop it would run all the code between the beginning and the current turn.
PROMETHEUS
You are very welcome to use this script in your mod. Like all mods, all I want is to be informed (I like to know how many people find the script useful) and possibly a note in the credits or readme or whatever.
dsyrow1 (again)
The while loop works as any while loop does. It simply runs the script between while and end_while until the conditions are no longer met. It doesn't run anything else though, so an empty while loop will in effect cause the script to pause until the conditions are no longer true.
Hope this helps
Bookmarks