HELP! how do i start?

niffweed17

Warlord
Joined
Oct 26, 2005
Messages
299
Location
Ahí en la ciudad
i have thrown out the idea of making a mod which would eliminate the set religion format, i.e. you discover christianity at theology, buddhism at meditation, hinduism at polytheism, etc. what i have proposed instead is that there be a set list of religions. at each of the 7 appropriate technologies, one religion is randomly selected from the list to be the religion founded.

unfortunately, nobody has seemed to have any interest, so i am undertaking the project myself.


however, upon doing so, it occurs to me that there will be two main parts to starting this mod. the first is to create a new set of religions. that will require some graphical experimentation, but i think that i can do that over some time.

however, i am flummoxed when it comes to telling the game how to accept that religion A need not be founded by technology X, religion B by technology Y, and so on. a quick review of XML files on religion and technology shows that the religions seem to be dependent on this format that each one is discovered by a specific technology.


so, my question is the following: how can i create a system so that specific religions are not necessarily founded by specific technologies, and instead have that any religion can be founded after the discovery of an appropriate, religion-creating technology?
 
an interesting project i'm not sure such a thing can be done without writing a mile of code because it is a new concept to the game having multiple religion foundable at the same point on the tech tree without founding all of them at the same time
 
No it can't be done with xml alone. You can make the current religions unfoundable (a tech which noone can research, or perhaps setting the tech required to none) and then write a python function which founds a random religion when any of the technologies you want to found a religion is discovered.
 
Back
Top Bottom