Ralendil
Augustus
Modifications: XML files
File: \Assets\XML\GameInfo\CIV4ReligionInfo.xml
Attachments: christian.jpg (3.2 KB), christianity.jpg (4.8 KB)
Purpose: Explaining how to modify a religion. We won't explain how to add a religion... simply modify it. You can modify several things in the religions, like the bonus given to the holy city, to the religion when it is the state religion, or the bonus of the religion with no religion state. You can give bonus in gold, research or culture. Finally the other thing interresting is the spread that can be modified also.
Well, there's not 100 methods to do that
. Let's explain the file:
Each new religion section is introduced by these tags
and finish by this tags
We will take the Judaism, not cause it is my prefered, cause it is the first one introduced in the file...
Bonus:
Where to find the picture used for the religion on the strat map ?
here: \Assets\Art\interface\buttons\religions\christian_d.dds
I have not played yet with that
Here you have the basis to modify the religions. But it is really the basis... If you search more you can find some mentions about religion in the units infos... We could imagine a mod based on the religions, and that gives several ways to obtain units. (like units require a religion to be built).
I hope this will help some civfans. Please forgive my bad english, I am not english native
.
File: \Assets\XML\GameInfo\CIV4ReligionInfo.xml
Attachments: christian.jpg (3.2 KB), christianity.jpg (4.8 KB)
Purpose: Explaining how to modify a religion. We won't explain how to add a religion... simply modify it. You can modify several things in the religions, like the bonus given to the holy city, to the religion when it is the state religion, or the bonus of the religion with no religion state. You can give bonus in gold, research or culture. Finally the other thing interresting is the spread that can be modified also.
Well, there's not 100 methods to do that

Each new religion section is introduced by these tags
Code:
<!-- Religion -->
<Civ4ReligionInfo xmlns="x-schema:CIV4GameInfoSchema.xml">
<ReligionInfos>
<ReligionInfo>
Code:
</ReligionInfo>
We will take the Judaism, not cause it is my prefered, cause it is the first one introduced in the file...
- <Type>RELIGION_JUDAISM</Type>
Here the valor that will be used by the game to identify the religion. As we don't want to add a religion, it has no real interest here.
- <Description>TXT_KEY_RELIGION_JUDAISM</Description>
The name of the religion. You can modify it in the file \Assets\XML\Text\CIV4GameTextInfos_Objects.xml
- <Civilopedia>TXT_KEY_RELIGION_JUDAISM_PEDIA</Civilopedia>
It refers to the religion description in the civilopedia. You can modify the description in the file \Assets\XML\Text\CIV4GameText_Civilopedia_CivicsReligion.xml
- <TechPrereq>TECH_MONOTHEISM</TechPrereq>
The technology needed in order to see the religion established.
The list of the technologies can be found in this file: \Assets\XML\Technologies\CIV4TechInfos.xml
- <FreeUnitClass>NONE</FreeUnitClass>
An unit given to the civilization that discover the religion.
An exemple of this can be found in the christian section.
In this section you can see this:
<FreeUnitClass>UNITCLASS_CHRISTIAN_MISSIONARY</FreeUnitClass>
This, commands the game to give a christian missionary to the civilization that discovers the christianity.
- <iSpreadFactor>100</iSpreadFactor>
The spread factor. To increase the spread of a religion you have to increase this number. Any increase of it will make the spread faster.
-
Code:
<GlobalReligionCommerces> <iGlobalReligionCommerce>1</iGlobalReligionCommerce> <iGlobalReligionCommerce>0</iGlobalReligionCommerce> <iGlobalReligionCommerce>0</iGlobalReligionCommerce> </GlobalReligionCommerces>
Here something interresting. This allow to modify the effect of the religion in global, so when no religion is the religion state. It works like that:- First section refer to the bonus in gold
- The second section refers to the research bonus.
- the last section refers to the culture bonus.
-
Code:
<HolyCityCommerces> <iHolyCityCommerce>0</iHolyCityCommerce> <iHolyCityCommerce>0</iHolyCityCommerce> <iHolyCityCommerce>4</iHolyCityCommerce> </HolyCityCommerces>
The bonuses for the holy city. It works like for the global bonuses. So gold, research and culture.
-
Code:
<StateReligionCommerces> <iStateReligionCommerce>0</iStateReligionCommerce> <iStateReligionCommerce>0</iStateReligionCommerce> <iStateReligionCommerce>1</iStateReligionCommerce> </StateReligionCommerces>
The bonuses accorded to a city when there's a state religion. It works like for the global bonuses. So gold, research and culture.
- <Button>Art/Interface/Buttons/Religions/Jewish.dds</Button>
Here you can define the picture used for the religion in the religion advisor pannel.
I have attached a picture that show for the christians what picture is it. (christian.jpg (3.2 KB))
- <TechButton>Art/Interface/Buttons/TechTree/Judaism.dds</TechButton>
Same as above a picture used for the religion. You can see it in the attachments... (christianity.jpg (4.8 KB))
- <MovieFile>Art/Movies/Religion/Christianity/Chr_Found.nif</MovieFile>
<MovieSound>AS2D_BUILD_CHRISTIAN_MOVIE</MovieSound>
defines the movie used when the religion is discovered. Here, I don't know more...
- <Sound>AS2D_BUILD_CHRISTIAN</Sound>
The sound file (don't know too much about the sound in Civ 4 for now).
Bonus:
Where to find the picture used for the religion on the strat map ?
here: \Assets\Art\interface\buttons\religions\christian_d.dds
I have not played yet with that

Here you have the basis to modify the religions. But it is really the basis... If you search more you can find some mentions about religion in the units infos... We could imagine a mod based on the religions, and that gives several ways to obtain units. (like units require a religion to be built).
I hope this will help some civfans. Please forgive my bad english, I am not english native
