Religions specific to civs

Pat la Menace

Chieftain
Joined
Aug 24, 2006
Messages
4
Location
Québec
How can we modify a XML file to allowing a religion to a specific civilisation? By exemple, in the CIV4ReligionInfo.xml file, we can modify the techs prereq. Can we add a "civ prereq" ? I feel comfortable with XML modifications but SDK, VB and others are too much complicated for me and i dont have many weeks to study this just for modify one thing! A simple method exist surely... What can i do to authorize only the arab civilisation to found the islam or for the indians the Hindouism?

Please help me! :sad:


Pardon my english, it's not my first language...
 
Pat la Menace said:
How can we modify a XML file to allowing a religion to a specific civilisation? By exemple, in the CIV4ReligionInfo.xml file, we can modify the techs prereq. Can we add a "civ prereq" ? I feel comfortable with XML modifications but SDK, VB and others are too much complicated for me and i dont have many weeks to study this just for modify one thing! A simple method exist surely... What can i do to authorize only the arab civilisation to discover the islam or the indians discover Hindouism?

Please help me! :sad:


Pardon my english, i'm a french canadian...

The only purely xml way to do it is to put the religion on a tech that that civ starts with.

With a little python you could put the religion on a tech that only certain civs can research. You would just need to block in the cannotresearch function based on the civ.
 
Hey thanks! :D

But if i play a game without India, by exemple, this means that a other civilization will can pick the tech who permit Hindouism. So, i will must include all civilisations who can found a religion, if not, i will have americans who will found islam... :hmm: Also, i will have all religions who will appear at the same time at the beginning of the game; not really realistic but i can deal with it. :)

Your second option is interresting if not too much complicated. Can i have a step by step procedure or is too long to explain?

Thanks a lot again! You are very fast on answering! :goodjob:
 
Kael said:
The only purely xml way to do it is to put the religion on a tech that that civ starts with.

This solution dont work. Even worse. The civ who have already the technology at the beginning dont get the religion because the civ must search for it and cannot found the religion because the civ got already the tech! :sad:

God, what can i do??? :crazyeye:
 
If you want to do it purely by way of XML then you will need 2 new techs for each religion.

First tech is non-tradeable/non-researchable and should be assigned as a start tech to the civs that can found this religion.

Second tech is the one that actually founds the religion when researched. It should be placed in the tech tree with the appropriate normal tech (Monotheism for Judaism etc.) AND the first tech as required techs to research.

Only the civs that have been assigned the first tech will now be able to research the second tech - and thus found the religion.
 
Nice xml solution, CyberChrist! That should work! :goodjob:

It reminds me good old time of c3c editor ;) Rhye used this trick in his RoCX mod.
 
Pat la Menace said:
This solution dont work. Even worse. The civ who have already the technology at the beginning dont get the religion because the civ must search for it and cannot found the religion because the civ got already the tech! :sad:

God, what can i do??? :crazyeye:

Forget what i said. This works, i just was not enough patient to wait few turns to see what happens... Shame on me....
:hammer2:

Cyberchrist, your solution is perfect for me, THANKS YOU VERY MUCH!

At work now! :thanx: :woohoo: :thumbsup:
 
Pat la Menace said:
Forget what i said. This works, i just was not enough patient to wait few turns to see what happens... Shame on me....
:hammer2:

Cyberchrist, your solution is perfect for me, THANKS YOU VERY MUCH!

At work now! :thanx: :woohoo: :thumbsup:

Yeah, its kinda weird, there is a check that goes through every few turns to check and see if a religion founding religion is already known bu tht ereligion isnt founded yet. I suspect they put it in in case you decide to start in late eras. But it should work fine for you too.

If you give your religion founding tech to a group of civs (say you only want eurpoean civs to found catholosim) then if multiple of them are in one game it will be random which of them founds it.
 
Back
Top Bottom