ripple01
Emperor
I am merging some of Ekmek's Prophet Driven Religion into my personal mod and I have merged most of it without any problems, even the Python.
For a quick background, Ekmek's mod changes religions so that they are founded through Great Prophets instead of through techs. There are different "founding buildings" set up for each religion and the Great Prophet builds these buildings thereby founding the religion, almost identical to the way it builds each religions Shrine.
However, there are two issues (both mentioned in Ekmek's thread) that I want to see if I can figure out how to solve.
1) There is no code for the AI to build the "founding building" that corresponds with its favorite religion. I have found a way in Python to identify the player's favorite religion. What I am unsure of if it is possible to direct the AI to build the appropriate "founding buidling" that corresponds with the favorite religion.
2) The second issue is somewhat related. Currently, the AI will build the "founding buildings" in order of how they are in the XML (unsure if it is in the Buildings XML or the Religions XML, but could test this pretty easily if need be.) So all the religions are founded in the same order every game (Judaism, then Christianity, then Islam, etc.). Is there way to use a random number generator to randomize which "founding building" the AI will choose so that the religions are not founded in the same order every game.
Many thanks for any points in the right direction. I can post any code or answer any other questions if necessary.
For a quick background, Ekmek's mod changes religions so that they are founded through Great Prophets instead of through techs. There are different "founding buildings" set up for each religion and the Great Prophet builds these buildings thereby founding the religion, almost identical to the way it builds each religions Shrine.
However, there are two issues (both mentioned in Ekmek's thread) that I want to see if I can figure out how to solve.
1) There is no code for the AI to build the "founding building" that corresponds with its favorite religion. I have found a way in Python to identify the player's favorite religion. What I am unsure of if it is possible to direct the AI to build the appropriate "founding buidling" that corresponds with the favorite religion.
2) The second issue is somewhat related. Currently, the AI will build the "founding buildings" in order of how they are in the XML (unsure if it is in the Buildings XML or the Religions XML, but could test this pretty easily if need be.) So all the religions are founded in the same order every game (Judaism, then Christianity, then Islam, etc.). Is there way to use a random number generator to randomize which "founding building" the AI will choose so that the religions are not founded in the same order every game.
Many thanks for any points in the right direction. I can post any code or answer any other questions if necessary.