Help with year increments

Khan

Chieftain
Joined
Nov 17, 2001
Messages
25
Location
Colorado, USA
I'm having difficulty figuring out how to get the year count to increment by one instead of the default. My mod starts in 1000AD, which I can set in the World Builder, but then increments like a normal game. I would like it to increment one year every turn for 400 turns.

Thanks for any pointers on this.
 
Hello.

There is no direct way to set this up, so you will need to change the start year on each turn instead.
1. New turn begins, the game updates the current year. Compute elapsedYears = currentYear - startYear.
2. From currentTurn, compute wantedCurrentYear
3. Set startYear = wantedCurrentYear - elapsedYears
 
There is a direct way to do it, use the GameSpeed_Turns table.

Correct. It's all handled through that table, with the game using the 7-8 entries for each game speed sequentially. (That is, it'll do X turns at Y months per turn, then do Z turns at a different rate, and so on down the line.) So if you're going to alter this for a mod, you're usually better off deleting the entire table and rewriting it from scratch. Just remember that you have to do this for each game speed...
 
Thank you all very much, I got it to work with the update command.

I also tried

<Delete Type="GAMESPEED_STANDARD"/>

to get rid of the entire table with no luck. Did I have the command incorrect?

Khan
 
There is no such column as Type in the GameSpeed_Turns table. Use GameSpeedType in your Delete command instead.
 
Back
Top Bottom