Are there any mods that increase the number of religions that can be founded?

Malkor

Chieftain
Joined
Dec 6, 2005
Messages
26
Just to be clear, I'm not asking about mods that add new religions. I'm looking for a mod that increases the max number of religions that can be founded in a game.

Moderator Action: Moved to C&C, best place to get answers, leif
 
Last edited by a moderator:
Max religions is a function of map size. It's easy to change either with a direct edit to the XML file, or with a mod. What values are you thinking of?
 
From reading other threads, I gather that the max number of religions that can be founded on any map is 7. So probably that?
 
From posts 15 and 16 here https://forums.civfanatics.com/threads/max-number-of-religion.468754/ we can calculate the max number of religions based on the available beliefs - which for an unmodded game is 7. So we could just hard-code that into the Civ5Worlds.xml file, or we could write a mod to do it.

Alternatively, we can construct the SQL to calculate it, which means if other mods add more beliefs it will dynamically update (provide this SQL executes after those mods have done their stuff, or we take the time to also code it as a trigger)

Code:
-- See Post #15 and #16 here [URL]https://forums.civfanatics.com/threads/max-number-of-religion.468754/[/URL]
UPDATE Worlds SET MaxActiveReligions = (
  SELECT Min(Religions) FROM (
    SELECT Count(ID) AS Religions FROM Beliefs WHERE Pantheon=1
    UNION
    SELECT Count(ID)-1 AS Religions FROM Beliefs WHERE Founder=1
    UNION
    SELECT (Count(ID)-1)/2 AS Religions FROM Beliefs WHERE Follower=1
    UNION
    SELECT Count(ID)-1 AS Religions FROM Beliefs WHERE Enhancer=1
    UNION
    SELECT Count(ID) AS Religions FROM Beliefs WHERE Reformation=1
    UNION
    SELECT Count(ID)-1 AS Religions FROM Religions
  )
);

Personally, I'd just edit the Civ5Worlds.xml file and make the changes
 
Last edited:
Top Bottom