Giving Civ X a stability boost

Jarlaxe Baenre

Emperor
Joined
Feb 17, 2010
Messages
1,959
Location
Calgary, Alberta, Canada
So, I created my own modmod of RFC - I made the Germans into the Holy Roman Empire. But because of the UHV conditions - Control 2 holy shrines (I go for Jerusalem) I always end up collapsing. And I've been testing this on Viceroy, building only Frankfurt 1 North (Start position), Danzig, a city 1 west of Paris I've been renaming 'Vimy', and a city 1 west of Marseilles I've been naming 'Nice' or 'Toulouse' or 'Marseille' or 'Pyrenneburg'. In Italy, I have a city I named 'Italicsburg' 1 east of the wine, and I have Rome. That's 6 cities. When I take Jerusalem, I enter collapsing, even with HR/Vassalage and Resettlement (When I use resettlement I always build Budapest for the stability boost if I haven't already). That's +6-7 stability, but I still collapse. Even if I have a couple vassals (I worldbuildered myself spain and portugal as vassals right before I become unstable/collapsing.).

I would normally consider this a challenge, surviving the collapse, except that it happens in 1170, 3 turns before 2 of the UHVs, which involve Jerusalem (2 Shrines), Rome, and 'Italicsburg' (Italy), are completed or lost. It's impossible to win by UHV.

So, how would I go about giving Germany a stability boost?
 
You'll find your answer if you do a search for turning off stability within this forum. I'm pretty sure that the mechanic involved giving a permanent stability boost of something large (+100 perhaps) as opposed to actually shutting down the stability mechanic.
 
Open Stability.py and look for "checkTurn(self, iGameTurn)" and add the following line:

Code:
        def checkTurn(self, iGameTurn):

		[COLOR="Red"]self.setStability(con.iGermany, self.getStability(con.iGermany) + X)[/COLOR]

                #moved here with its own stored value to save loading time (scrolls the map only once instead of every player)
                if (iGameTurn % utils.getTurns(6) == 0): #3 is too short to detect any change; must be a multiple of 3 anyway
The X has to be replaced with the boost you want to give, of course (the additional stability would be added every turn). Please make sure the spaces are like in this example (the new line has the same number of tabs as the following ones).

This is only a basic method of course, depending on what you want you could make it happen only every Y weeks (making use of the modulo operator "%" like in the following lines, or only when stability has fallen below a specific value.
 
Top Bottom