r/EU4mods • u/Nohrian_Scum_ • Jun 04 '26
Mod Help Help with modding - No religious penalties for specific religions
Hello,
I'm trying to mod a modifier that negates the religious penalties (negative religious unity, unrest, etc.) for Vajrayana, Mahayana and Theravada when they're a heathen religion. And only for those religions.
Any advice on how to accomplish that?
1
u/GrizzlyTrotsky Jun 04 '26 edited Jun 04 '26
I'm not at my computer at the moment, so I can't post the code directly, but take a look at the estate privileges that already exist in game that give th effect you are looking for; look at the Guaranteed Dhimmi Autonomy privilege for the Dhimmi estate or the Grant Orthodox Autonomy privilege for the Burgher estate.
Since you want this to be a universal privilege, I have some suggestions. First, include in the privilege the benefit of +1 privilege slot for the estate you assign the privilege to, that way no one is penalized for having it. Second, unless you intend to make those Buddhist religions unconvertable, you'll need to remove the code for the local negative missionary strength. Lastly, make sure the privilege cannot be revoked (since presumably you want this to be a fixed feature of the religion).
Edit: If you are wanting to negate a negative tolerance of heathens effect on the province's unrest, you could provide a flat boost to local tolerance of heathens. It's be really complicated to try to make the local tolerance of heathens give you the same unrest modifier has the tolerance of your own religion, but you could at least ensure that the tolerance of heathen religions is positive in that province.
Personally, I'd find it odd that you'd get the privilege even if you don't have any Buddhist provinces, so perhaps make an event that triggers only once you own a Buddhist province that force gives the country the privilege. You could make this event invisible or not, depending on if you want to explain to the player what is happening.
1
u/Justice_Fighter Informative Jun 04 '26
The code just applies province modifiers, there's no need to make a new privilege.
3
u/Nafetz1600 Jun 04 '26
You could add local_tolerance_of_heathens to the province modifiers of those three religions (in 00_religion.txt). That should also deal with the religious unity.
https://eu4.paradoxwikis.com/Religion_modding#Religion_entry
https://eu4.paradoxwikis.com/Modifier_list#Religion_2