View Full Version : [Mini-Modcomp] Changed Arabic UP


Ginnungagap
Feb 29, 2008, 11:07 AM
Mainly for the 3000 BC start with lots of religions spreading in the middle east. With this mini-modcomp the arabic UP removes all religions (if the city isn't the Holy City) from a conquered city. All normal effects (temples and co.) stay.

Simply replace the "UniquePowers.py" with the attached file (it's a .py-file, because of the forum i had to change the ending) or add these lines:
for iReligionLoop in range(iNumReligions):
if (iReligionLoop != iStateReligion):
if (not city.isHolyCityByType(iReligionLoop)):
city.setHasReligion(iReligionLoop, False, False, False)
below these:
def arabianUP(self, city):
pArabia = gc.getPlayer(iArabia)
iStateReligion = pArabia.getStateReligion()
if (iStateReligion >= 0):
if (not city.isHasReligion(iStateReligion)):
city.setHasReligion(iStateReligion, True, True, False)
if (not city.hasBuilding(iTemple + iStateReligion*4)):
city.setHasRealBuilding((iTemple + iStateReligion*4), True)
if (not city.hasBuilding(iCathedral + iStateReligion*4)):
city.setHasRealBuilding((iCathedral + iStateReligion*4), True)
in the same file.

Have Fun :)

kairob
Feb 29, 2008, 11:25 AM
Very nice change, I mostly play the 600ad start, but I will download it anyway as it will be usefull if I play earlier.

onedreamer
Apr 11, 2008, 02:35 AM
I like the idea, but if I use it the game is lost at start...

Verily
Apr 12, 2008, 06:38 PM
I like the idea, but if I use it the game is lost at start...


Or the UHV, anyway. You need to make it not apply to holy cities.

The Q-Meister
Apr 14, 2008, 01:16 PM
Hmm, not sure how I feel about this. And I don't get what you mean by by lots of religions going into the Middle East? The big 3 monotheist religions are present, as they should be. Judaism is over-represented but that's due to the game mechanics and the debatable question of whether Judaism should be in the game. Hinduism sometimes gets into Persia, but that's about it and unavoidable since no Zoroastrianism.

The UP doesn't really work with the Arabs as historically they had to work with the other monotheist faiths (Judea, al-Andalus) and the ancient Arabs did not repress at least the monotheistic religions during the time period of their empire and Muslim expansion.

onedreamer
Apr 15, 2008, 03:01 AM
what I was trying to say is that it doesn't work in the implementation, not in the idea. When I start a game with those lines in Python, it immediatly ends with a loss.