Ekmek
on steam: ekmek_e
I know there are a lot of religion mods out there, but I just want a real basic mod where a great prophet founds a religion instead of tech. The old warlords true prophets mod was close but had too much other stuff like pagan temples etc. I just want prophets not techs.
so I added founding buildings etc from based on the old warlords mod True Prophets and saw it had warlords python to make holy city. I updated that with the code from gods of old. I know this part of the code works because I put all of gods of old python into my mod and added my changed building names and it worked.
Now I'm a python noob so I made the mistake thinking if i just replace this working part with a truncated python file from the true prophets warlords mod it would work. but it doesn't
So my first question is:
What does my python file need to look like? I think it CVEvents. Do I just copy the standard one from bts and stick this in there?
Do I need anything else?
my next harder question is how to get the leader's preferred religion be the one they choose and not the first option available.
My other question
I identified this code:
thanks for the help!
so I added founding buildings etc from based on the old warlords mod True Prophets and saw it had warlords python to make holy city. I updated that with the code from gods of old. I know this part of the code works because I put all of gods of old python into my mod and added my changed building names and it worked.
Now I'm a python noob so I made the mistake thinking if i just replace this working part with a truncated python file from the true prophets warlords mod it would work. but it doesn't
So my first question is:
What does my python file need to look like? I think it CVEvents. Do I just copy the standard one from bts and stick this in there?
Do I need anything else?
my next harder question is how to get the leader's preferred religion be the one they choose and not the first option available.
My other question
Spoiler :
I identified this code:
Code:
if iBuildingType == CvUtil.findInfoTypeNum(gc.getBuildingInfo, gc.getNumBuildingInfos(), "BUILDING_TP2_JEWISH_FOUNDING"):
iReligion = CvUtil.findInfoTypeNum(gc.getReligionInfo, gc.getNumReligionInfos(), "RELIGION_JUDAISM")
gc.getGame( ).setHolyCity(iReligion, pCity, 1)
if iBuildingType == CvUtil.findInfoTypeNum(gc.getBuildingInfo, gc.getNumBuildingInfos(), "BUILDING_TP2_CHRISTIAN_FOUNDING"):
iReligion = CvUtil.findInfoTypeNum(gc.getReligionInfo, gc.getNumReligionInfos(), "RELIGION_CHRISTANITY")
gc.getGame( ).setHolyCity(iReligion, pCity, 1)
if iBuildingType == CvUtil.findInfoTypeNum(gc.getBuildingInfo, gc.getNumBuildingInfos(), "BUILDING_TP2_ISLAMIC_FOUNDING"):
iReligion = CvUtil.findInfoTypeNum(gc.getReligionInfo, gc.getNumReligionInfos(), "RELIGION_ISLAM")
gc.getGame( ).setHolyCity(iReligion, pCity, 1)
if iBuildingType == CvUtil.findInfoTypeNum(gc.getBuildingInfo, gc.getNumBuildingInfos(), "BUILDING_TP2_HINDU_FOUNDING"):
iReligion = CvUtil.findInfoTypeNum(gc.getReligionInfo, gc.getNumReligionInfos(), "RELIGION_HINDUISM")
gc.getGame( ).setHolyCity(iReligion, pCity, 1)
if iBuildingType == CvUtil.findInfoTypeNum(gc.getBuildingInfo, gc.getNumBuildingInfos(), "BUILDING_TP2_TOAISM_FOUNDING"):
iReligion = CvUtil.findInfoTypeNum(gc.getReligionInfo, gc.getNumReligionInfos(), "RELIGION_TAOISM")
gc.getGame( ).setHolyCity(iReligion, pCity, 1)
if iBuildingType == CvUtil.findInfoTypeNum(gc.getBuildingInfo, gc.getNumBuildingInfos(), "BUILDING_TP2_BUDDHIST_FOUNDING"):
iReligion = CvUtil.findInfoTypeNum(gc.getReligionInfo, gc.getNumReligionInfos(), "RELIGION_BUDDHISM")
gc.getGame( ).setHolyCity(iReligion, pCity, 1)
if iBuildingType == CvUtil.findInfoTypeNum(gc.getBuildingInfo, gc.getNumBuildingInfos(), "BUILDING_TP2_CONFUCIAN_FOUNDING"):
iReligion = CvUtil.findInfoTypeNum(gc.getReligionInfo, gc.getNumReligionInfos(), "RELIGION_CONFUCIANISM")
gc.getGame( ).setHolyCity(iReligion, pCity, 1)
thanks for the help!