Changing City State decay rate

MiKeLT

Chieftain
Joined
Aug 3, 2018
Messages
2
Hi,

I have recently returned to CIV V and im loving it. I really enjoy the city state diplomacy mod but there is one thing I wish I coud change. How do I mod the decay rate to make it decay slower. I use mods the drasticly slow the game down tech and era wise and would like the CS decay rate to match.

Any help would be appreciated!!

Thank you!!

Moderator Action: Welcome to CivFanatics. Moved this thread to the main C&C forum as that is where questions belong. Best of luck in your modding. leif
 
Last edited by a moderator:
I think you could utilize the XML behind Alexander's City-State decay ability (Hellenic League) to change the global value for City-State decay by altering the default value for CityStateFriendshipModifier. You can find the information for Alexander's ability in Sid Meier's Civilization V/Assets/Gameplay/XML/Civilizations/CIV5Traits. The trait, CityStateFriendshipModifier, you can find with Ctrl+F, and basically you would have to create a mod changing this value, from its default 0, to a number higher than that (Alexander's value for this Column is 100, which means his Influence declines half as quickly and recovers twice as fast). That said, you would also want to write an additional XML code to change Alexander's ability to make his value for that Column higher so that his Influence declines even more slowly, to keep things balanced and make sure his ability still has value.
 
From file C:\Program Files (x86)\Steam\SteamApps\common\Sid Meier's Civilization V\assets\DLC\Expansion2\Gameplay\XML\AI/GlobalAIDefines.xml
Code:
<GameData>
	<Defines>
		<Row Name="MINOR_FRIENDSHIP_DROP_PER_TURN">
			<Value>-100</Value>
		</Row>
		<Row Name="MINOR_FRIENDSHIP_DROP_PER_TURN_HOSTILE">
			<Value>-150</Value>
		</Row>
	</Defines>
</GameData>
"100" = "1" on standard gamespeed and at Prince or greater difficulty, as I recall. And without any Policy or Trait effects that alter the decay rate.
 
Back
Top Bottom