Religion Mod Part I

Dom Pedro II

Modder For Life
Joined
Apr 3, 2002
Messages
6,811
Location
Exit 16, New Jersey
Religion Mod: The First Testament

(screenshots soon...)


Religion Mod Part 1

This mod comes in two parts. The first deals with the spread of religion in the game. The second deals with the effects of religion in the game.

With only a few days left until the release of BtS, I decided to embark on some much-needed changes to religion in the game since the Apostolic Palace will be adding new levels of depth to religion. There are two major complaints that I hear from people: 1) Islam comes in too late in the game, and the map is usually dominated by Buddhism and Hinduism as the two religions that can be acquired immediately after Mysticism, and 2) Great Prophets are useless after the religious shrines have been founded.

I tried to address both of these issues without actually making any changes to the religions themselves. Firaxis, ironically, opted to make religions exactly the same for the sake of not stepping on any toes, and yet they made one religion (Islam) very much inferior to the others by appearing so late, and Buddhism and Hinduism superior by appearing so early. I also find building Missionaries to be tedious although occasionally necessary. I wanted to remove them as the primary means of spreading religion.

While testing my changes, I waited as long as possible to found Christianity with the discovery of Theology, and by the late Middle Ages, all the civilizations on the continent were Christian and I didn't build a single Missionary!

How? Well, there are now more factors that contribute to spreading a religion besides just having a shrine in the holy city. Religion spread factors now include whether the target city belongs to you, whether the religion being spread is the state religion, trade routes between the spreading city and target city, whether the spreading city's owner is in a Golden Age or in the midst of anarchy, the power differences between the spreading city's owner and the target city's owner, the era the spreading player is in, techs, specialists and buildings of each. I've tried to include GlobalDefines for each of the different factors so that people can tweak it to their needs.

So one can make it that religion spreads much more slowly in the early game and really only starts spreading rapidly just before or just after Islam has been founded. Of course, this doesn't do much for the happiness and cultural bonuses a player can get early on in their cities that they won't be able to if they hold out for Islam, but it will at least make Islam competitive in terms of its reach.

Note: The file includes two text files. The reason is that I found the percentages for the state religion modifiers were pretty useless since you don't know exactly what they're modifying, so I decided to go with something a bit more pleasing to the eyes without any numerical value.

In the next phase of this mod (when it's done), I will add one new spread factor: a new Civic feature called ConvertOnConquest. Basically, a player will have a very good chance of spreading their State Religion to a city right when they conquer it and a smaller chance of removing any Non-State Religions the city might have.

I'm also including Building tags that will change War Weariness, Hurry Anger, and Military Production in cities with your State Religion.

GlobalDefines

BASE_MAX_RELIGIONS_PER_CITY - This defines how many religions can be allowed in one city. A value of 0 means no religions are allowed in a city. If a city has reached the limit, religions cannot spread automatically to the city and missionaries cannot spread religion to it manually. The only way a religion could spread beyond the max is if it was founded there. I didn't want a new religion being founded to be blocked from being in its holy city if the city had already hit the limit. This limit can be increased with techs [see below...]

BASE_MAX_RELIGIONS_SPREAD_PER_CITY - This number restricts whether a religion can spread automatically to a city if the number has been reached. So, for example, if the number is 3 religions, a new religion can spread if there were 2 religions already in the city, but it would be unable to spread there if there were already 3. A value of 0 means a religion can't spread to a city at all regardless of how many religions are already there. This maximum value can be increased with techs [see below...]

Note: Each new religion decreases the chance of a future religion spreading. The number is based on how many religions are in the game.

TRADE_ROUTE_RELIGION_SPREAD - As I said, trade routes will now help spread religion. If the two cities share a trade route with each other, this value is applied. Increasing the value increases the significance of a trade route existing between the spreading city and the target city. For this reason, choosing civics, building Wonders, and researching techs that increase trade routes will consequently increase the spread of your religions (and it will also increase the spread of religions into your lands as well). A value of 0 disables this feature.

GOLDEN_AGE_RELIGION_SPREAD - It seemed like a good idea that a civilization in the middle of a Golden Age should spread its religions more easily. It was fun starting a game with this value cranked way up and all other factors set to zero, and not see any religion spread at all... then burn two Great People and watch as my state religion spread to several cities a turn!

VASSAL_RELIGION_SPREAD - This factor increases the spread of a religion from master to vassal (but not vise versa).

ANARCHY_RELIGION_SPREAD_DIVISOR - This reduces the chance of a religion spread when the spreading civ is in the middle of Anarchy. This indirectly gives a bonus to Spiritual leaders who don't have Anarchy. A value of 2 cuts the chances of spreading a religion in half. DO NOT use a value of 0 if you want to disable this... instead use a value of 1.

PLAYER_INTERNAL_RELIGION_SPREAD - This increases the chance of a religion spreading to one's own cities. A value of 0 disables this.

STATE_RELIGION_MULTIPLIER - This only applies to the above value. A value of 2 doubles the internal religion spread value if the religion being spread is the player's State Religion.

CIV4TechInfos.xml

<iStateReligionSpreadModifier> - This increases the player's ability to spread his State Religion.
<iMaxReligionsSpreadPerCityChange> - Increases the maximum number of religions a city can have for a new religion to spread there. Negative values can work, but they won't display properly.
<iMaxReligionsPerCityChange> - Increases the maximum number of religions a city can have. Negative values work, but they won't display properly.

CIV4SpecialistInfos.xml

<iStateReligionSpreadModifier> - This increases the player's ability to spread his State Religion. This is intended to make Great Prophets more powerful after shrines are built by increasing the player's total religion-spreading ability after settling in a city.

CIV4BuildingInfos.xml

<iStateReligionSpreadModifier> - This increases the player's ability to spread his State Religion.
<iStateReligionInfluence> - This increases the influence of the player's State Religion regardless of what that might be. I've applied it in this demo to the Arab Madrassa and Hindu Mausoleum.
<BlockNonStateReligion> - This acts like a one-city Theocracy civic. A city with a building that has this tag will be immune from foreign religions spread either automatically or by missionaries. I've applied it in this demo to the Spanish Citadel.

CIV4GameSpeedInfo.xml, CIV4EraInfos.xml, CIV4WorldInfo.xml

<iReligionSpreadPercent> - I haven't tweaked these values, but each of these settings adjusts the chance for a religion spreading. This tag in the GameSpeed info modifies the "RELIGION_SPREAD_RAND" value in the GlobalDefines. So if that number is 1000, you have to roll greater than 1000 to spread the religion. A higher value increases the likelihood of failure.

The tag in the EraInfo modifies the total religion spread probability. Increasing this value will increase the spread of a religion in a particular Era (only applies to the spreading player!).

The WorldInfo might not be particularly necessary, but it modifies the distance divisor. Increasing that number will decrease the chance of successful religion spread based on the distance from the spreading city to the target city.
 
I hate how there's no Mediterranean flavor to the religions in the game. Is it possible to add something like Hellenism as a religion? The ideal place for it would be right with the Priesthood tech, because that's when you get the Oracle anyway. It would be perfect.

Especially when I'd most like to play as the Romans and Greeks anyway, the religions annoy me. I wish there were a way, short of adding Hellenism, to just turn off religion in the game.
 
Dom, have you ever thought of extending your "max religions per city" tag to Civics? Basically, I'm thinking that under Theocracy, you'd be allowed only one religion per city... under organized religion / paganism, you get up to three... with free religion, all seven are available. This would add an extra dimension to religious civics.
 
I just wanted to comment on the "Great Prophets are useless" after you get all shrines to chime in; Great Prophet specialists are very good!
 
I hate how there's no Mediterranean flavor to the religions in the game. Is it possible to add something like Hellenism as a religion? The ideal place for it would be right with the Priesthood tech, because that's when you get the Oracle anyway. It would be perfect.

Especially when I'd most like to play as the Romans and Greeks anyway, the religions annoy me. I wish there were a way, short of adding Hellenism, to just turn off religion in the game.

Well, yes, it's quite possible to add a new religion (and call it whatever you want). It certainly doesn't require this modcomp to be done. Just a good knowledge of XML and some graphics (which can be found in the Warlords stuff for the ancient greece scenario).

Dom, have you ever thought of extending your "max religions per city" tag to Civics? Basically, I'm thinking that under Theocracy, you'd be allowed only one religion per city... under organized religion / paganism, you get up to three... with free religion, all seven are available. This would add an extra dimension to religious civics.

True. No, I'd not thought about that specifically. Now, would you want it to automatically destroy non-state religions in the city if they're already present? Or just limit their spread via missionaries and shrines? If it's the former, I could see this being quite exploitable since it would be like a free Inquisition in all your cities. And if its the latter, then the problem becomes that you won't be able to use your missionaries to spread your state religion to your own cities!

I just wanted to comment on the "Great Prophets are useless" after you get all shrines to chime in; Great Prophet specialists are very good!

I agree, but this is a complaint I've been hearing about that. Although the specialist is still not as good as some of the missions that other Great People can perform throughout the length of the game.
 
This is great, but will you be converting it to BtS soon? :)

Planning to. I'm going to convert everything to BtS in the next week or so.
 
So let me get this straight... you basically focused on how religion automatically spreads, and made it harder to spread before the advent of trading technologies. When the trading technologies come, the religions can spread quite well?

This seems quite ingenious. An improvement to realism AND game balance. That's quite rare in a mod, IMO!
 
So let me get this straight... you basically focused on how religion automatically spreads, and made it harder to spread before the advent of trading technologies. When the trading technologies come, the religions can spread quite well?

This seems quite ingenious. An improvement to realism AND game balance. That's quite rare in a mod, IMO!

Well... I'm glad you like it :)
 
Hey Dom... just curious if you're going to do this for BtS... and any word on Part II yet?

Yeah, I've been bad about getting around to porting this for BtS... Hopefully I'll do it this weekend now that I've been nudged :p

As for Part II, I ran into some snags regarding my plans for the specialists... The past two weeks have been insane, so it's been tough to do anything really... but I'll take another shot at the specialist aspect of Part II, and if I can't manage it, I'll at least release the other stuff I did manage to get to work so that people can incorporate that it into their mods ASAP.
 
Yeah, I've been bad about getting around to porting this for BtS... Hopefully I'll do it this weekend now that I've been nudged :p

As for Part II, I ran into some snags regarding my plans for the specialists... The past two weeks have been insane, so it's been tough to do anything really... but I'll take another shot at the specialist aspect of Part II, and if I can't manage it, I'll at least release the other stuff I did manage to get to work so that people can incorporate that it into their mods ASAP.



Tell me about it, brotha. I've been pretty busy myself! :crazyeye:


I do have one request/suggestion, if you can fit it in.

How about a Boolean tag in the ReligionInfos.xml file that dictates if a Religion can spread outside your cultural borders? So say you have Buddhism, but you have the tag set to:

<bSpreadOutsideBorders>0</bSpreadOutsideBorders>

So... that would mean that Buddhism cannot spread outside your borders. Now, if a city gets captured by the enemy, and it has Buddhism in it, then Buddhism would then be able to spread into the enemy's cities, since the captured city is now within their cultural borders.

Then of course if ou have:

<bSpreadOutsideBorders>1</bSpreadOutsideBorders>

then the religion would of course be able to spread across the world unhindered.



Just a friendly suggestion/request. ;)
 
Question: Are any of the changes religion-specific? I'm asking because I've set 'Choose Religions' as default to make it so Buddhism and Hinduism aren't always the dominant religions. I'm very interested in adding this mod, though.
 
One thing that has always Annoyed me about Religion in the Game is that a religion is founded by the first to discover a certain technology. This doesn't seem very realistic.

A better more realistic way to do it would be with a Great Prophet. How I would see this happening is:

when you discover a Religion tech, instead of getting the religion, You get X Great Prophet points Per Turn in a city.
The first one to discover the tech gets X Points Per Turn.
The second Civ gets X-1 Points Per Turn
The third Civ gets X-2 Points Per Turn
The fourth gets X-3 points Per Turn
Until the last couple of civilizations get 1 point per Turn

There could also be a pagan temple that gives Great Prophet Points.

That way there could be a Race to see who gets the Great Prophet First.
Then the Great Prophet Could have the Ability to found A Religion. Once The Great Prophet is born, Then he can found the religion. Once all Religions have been founded The Great Prophet loses the Found Religion Ability.

So what does everyone think can this be added.
 
Tell me about it, brotha. I've been pretty busy myself! :crazyeye:


I do have one request/suggestion, if you can fit it in.

How about a Boolean tag in the ReligionInfos.xml file that dictates if a Religion can spread outside your cultural borders? So say you have Buddhism, but you have the tag set to:

<bSpreadOutsideBorders>0</bSpreadOutsideBorders>

So... that would mean that Buddhism cannot spread outside your borders. Now, if a city gets captured by the enemy, and it has Buddhism in it, then Buddhism would then be able to spread into the enemy's cities, since the captured city is now within their cultural borders.

Then of course if ou have:

<bSpreadOutsideBorders>1</bSpreadOutsideBorders>

then the religion would of course be able to spread across the world unhindered.

Just a friendly suggestion/request. ;)

Yes, this is a fairly simple thing to do... the game runs through a series of checks to determine whether or not to roll to see if a religion spreads to a city anyway. Adding one more isn't a big deal. However, I'd rather have a negative tag.. in other words, <bNoSpreadOutsideBorders> rather than <bSpreadOutsideBorders> that way the default is that a religion can spread outside its cultural borders.

Question: Are any of the changes religion-specific? I'm asking because I've set 'Choose Religions' as default to make it so Buddhism and Hinduism aren't always the dominant religions. I'm very interested in adding this mod, though.

No. None of the changes are religion-specific. The whole idea was to make later-game religions more viable without changing their characteristics. So with this mod, whether you play with the option to choose the religion you found or if you play with the option to found whatever religion that tech unlocks, the last religion discovered will have roughly the same odds of being the dominant religion in the world as the first one discovered.

Will it also include a inquisitor unit which can exterminate unwanted foraign religions under theocracy?

This is not a mod so to speak. It's a modcomp. Thus I'm not adding content. The "inquisitor" functionality has been added to the game by others so I felt no need to add it here. This is strictly for modders to be able to incorporate into their own mods not to act as a stand-alone mod on its own although it can be played that way.

One thing that has always Annoyed me about Religion in the Game is that a religion is founded by the first to discover a certain technology. This doesn't seem very realistic.

A better more realistic way to do it would be with a Great Prophet. How I would see this happening is:

when you discover a Religion tech, instead of getting the religion, You get X Great Prophet points Per Turn in a city.
The first one to discover the tech gets X Points Per Turn.
The second Civ gets X-1 Points Per Turn
The third Civ gets X-2 Points Per Turn
The fourth gets X-3 points Per Turn
Until the last couple of civilizations get 1 point per Turn

There could also be a pagan temple that gives Great Prophet Points.

That way there could be a Race to see who gets the Great Prophet First.
Then the Great Prophet Could have the Ability to found A Religion. Once The Great Prophet is born, Then he can found the religion. Once all Religions have been founded The Great Prophet loses the Found Religion Ability.

So what does everyone think can this be added.

A system similar to this is already used in at least one of the mods out there although I can't remember which specifically. This system, while a good one I think, is a bit beyond the intended scope of this modcomp.
 
Top Bottom