[Mini-Modcomp] Changed Arabic UP

Ginnungagap

Chieftain
Joined
Feb 29, 2008
Messages
3
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:
Code:
for iReligionLoop in range(iNumReligions):
     if (iReligionLoop != iStateReligion):
          if (not city.isHolyCityByType(iReligionLoop)):
               city.setHasReligion(iReligionLoop, False, False, False)
below these:
Code:
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 :)
 

Attachments

I like the idea, but if I use it the game is lost at start...
 
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.
 
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.
 
Hi,

I'm currently creating my own mod called Rhye's and Fall Realism, and I would like to implement your mod. I tried to follow your instructions to the letter, but in the end it didn't work at all, as in nothing happened. So I attached my Uniquepowers.py file to this post, I was hoping that you could take a look, and tell me if it is correct.

Thanks!
 

Attachments

Back
Top Bottom