Plague disable

Coverdrive

Chieftain
Joined
Apr 21, 2013
Messages
5
Apols if this is answered elsewhere, but how do you turn off plagues in RFCE? I love the game but the plagues are just sucking the life out of it for me.
 
they can be really harsh, yeah. But it was devastating back then ;)

You can remove the plague from cities via the worldbuilder (it counts as a building), I don't know any XML but someone will probably here soon who can tell you how to deactivate it there.

Until then I'd recommend playing a civ that doesn't care that much about the plagues (Venice, Spain, even Portugal and probably England come to mind)
 
Editing only the XML won't work. You could only remove the :yuck: from the building, but it will still spread, reduce population and kill units.


I believe this will work:
Open plague.py (assets/python)
Search for code below
Code:
        def isVulnerable(self, iPlayer, iHealth):
                # Indys and Barbs are vulnerable for more than -10
                # calculate the total health percent, to determine if vulnerable or not (also tech immunicy goes here)
                # if Health == -100, calculate player's health, else: use the value
                if (iPlayer >= iNumMajorPlayers):
                        if (self.getPlagueCountdown(iPlayer) <= 0 and self.getPlagueCountdown(iPlayer) > -10 ): #more vulnerable
                                return True
                else:
                        pPlayer = gc.getPlayer(iPlayer)
                        #print( " iPlayer, countdown: ",iPlayer,self.getPlagueCountdown(iPlayer) )
                        if (self.getPlagueCountdown(iPlayer) == 0): #vulnerable
                                if ( iHealth == -100 ):
                                        iHealth = self.calcHealth( iPlayer )
                                        #print(" iPlayer:  iHealth: ",iPlayer, iHealth )
                                        if (iHealth < 14): #no spread for iHealth >= 74 years
                                                return True
                                else:
                                        if ( iHealth < 14 ):
                                                return True
                return [COLOR="Red"]False[/COLOR]
If you change the red "False" to "True",the plague should be disabled. I haven't tested it and I'm not completely sure if it will work.
(It will actually not disable the plague, but it will never spread to any city, which has the same effect)
 
Heh.

That powered the plague up. It hit the same cities multiple times and gutted it. I had one SOD to keep an aggressive German away from my cities, and it wiped it out in one turn. (approx 30 odd units) :lol:

It was definitely still spreading though.

What about these bits? Can I change these values without causing other issues? (I don't speak computer so I'm just guessing here).

#Sedna17: Black Death is now set to be especially severe.
iDuration = 6
iImmunity = con.iImmunity
iNumPlagues = 5
iConstantinople = 0
iBlackDeath = 1


If I only had one plague and it only ran a turn or two I would be a happier man.
 
^ I gave both of these values 1 -

iDuration = 6

iNumPlagues = 5

and it seemed to kill off the plague. It was half way through a game though so I'm not sure what it would do from the start.
 
Back
Top Bottom