Religion connected to civ

tlucky4life

Sachem
Joined
Jan 5, 2003
Messages
105
Location
Shawnee
Hello modders I have a question for you about my idea for a mod

Is it possible to connect religions to specific civs? For instance is it possible to make a mod were you assign lets say judiasm to isreal, or hinduism to india in a way that when a certian tech, or random event happens then india founds hinduism instead of it being founded by england or some other civ. This concept would coincide with the limit on number of religions (if there is one). Players would be inticed to start a reeligion instead of which religion. You would ultimately choose your religion when you choose the civ. If you look deep enough we could probably find a religion for just about anyciv. If not you could have a multiple of religions in a pool for certain civs to choose from for instance budism or christianity.

Can it be done, any ideas?
 
tlucky4life said:
Hello modders I have a question for you about my idea for a mod

Is it possible to connect religions to specific civs? For instance is it possible to make a mod were you assign lets say judiasm to isreal, or hinduism to india in a way that when a certian tech, or random event happens then india founds hinduism instead of it being founded by england or some other civ. This concept would coincide with the limit on number of religions (if there is one). Players would be inticed to start a reeligion instead of which religion. You would ultimately choose your religion when you choose the civ. If you look deep enough we could probably find a religion for just about anyciv. If not you could have a multiple of religions in a pool for certain civs to choose from for instance budism or christianity.

Can it be done, any ideas?

Yup, not too bad either. Python has a CvEventManager.py file that has a function called "onReligionFounded", which is called whenever a new religion is founded. Just write any python code for anything you want to do there. The arguments are the ID of the religion and ID of the player that founded it. Using that info you can probably come up with anything you need to, so long as it can be programmed in Python.
 
Back
Top Bottom