Can a religion add unhappiness?

Ajidica

High Quality Person
Joined
Nov 29, 2006
Messages
22,482
Hello,
I'm working on a mod where I want a religion to add unhappiness to a city as it spreads rather than happiness. Is this function controlled by XML and if yes, what XML file? I looked in the ReligionInfos file and saw nothing about controlling happiness there.

Any help is appreciated.
 
A religion can cause unhappiness through a Civic: see for example the tag iNonStateReligionHappiness. A value of -1 provides unhappiness.

Problem 1: If you want to apply this at all times for every player, you have to set the same value to every civic in a given CivicOptionType (like CIVICOPTION_RELIGION, but not necessarily this one).

Problem 2: you cannot specify that it applies for only one religion and not for others.

Apart from this, I wouldn't know how to do it, except through Python (heavy solution, as you might need to check if the religion was not removed - if you have inquisitors, or K-Mod which does obsolete some religions from time to time - and then remove the added unhappiness).
 
It'd be simpler modifying the DLL if you want the unhappiness to be tied to anything but the civics.
 
Thanks for the info.

Unfortunately, I have absolutely no skill at modifying the .dll so I'll have to find a workaround.
 
Back
Top Bottom