[PYTHON] zReligion Limiter

Zebra 9

Emperor
Joined
May 17, 2006
Messages
1,554
Location
Middle of Cyberspace
zReligion Limiter v0.1

Type: Python
Version: v0.1
Compatability: BtS (Might be compatable with Warlords and Vanilla)
MP Compatable: No, it uses script data to store what religions are in game.
Download Here:
File DB Entry Here

Description:
This allows you to limit the number of religions in a game. So for example if you have the default religions in game and set it to use only 5 religions the game will select 5 random religions and the 2 that are left over will not be foundable.

MODing:
I have added a new Global Define in the GlobalDefinesAlt.xml. Set the new MAX_IN_GAME_RELIGIONS Global Define to the number of religions you want.

What I Have Changed:
I have changed the Religions Pedia Screen, City Screen, and the Religions Screen.
 
:goodjob: :goodjob: :goodjob:

Thank you so much! This works like a charm and is now in my mod. I really appreciate you making this.

I do have one small suggestion for an improvement, if you are up for it. I liked the message you put in the Civilopedia saying this religion is disabled in this game. I am hoping maybe you could take that a step further and (if possible) modify the Tech Tree so that the icons of disabled religions don't appear on the respective founding tech.

Cheers,
ripple01
 
I had done that, but I found that the tech screen is loaded before the religions are selected.


P.S I think I just thought of a way to fix this. ;)
 
Wow this is awesome, it might actually make it much easier to add totally new religions since we won't have to worry about affecting the gameplay/balance too much! Kudos to you, Zebra :)
 
Thanks. I suppose the same could be done for corporations?

Ultimately, what would be good would be to be able to define the number of religions (and corporations) in the Custom Game options, and even a random number option.

And to add to the variation, instead of the certainty of founding a religion after being the first to discover the appropriate tech, instead only make a possibility of founding the religion, based on the number of religions left to found over the number of opportunities avaliable to found a religion (there are 7 opportunities on the tech tree).

So, for instance, if there are three religions, whoever is first to discover one of the religious techs, has a 3/7 chance of founding a religion. If it fails, then the next opportunity is 3/6 but if it suceeded, then the next opportunity is 2/6 and so on. You could even take it further and allow the possiblity than some religions never get founded even though they might be avaliable by making the divider 10 say instead of 7.
 
That might be neat to do, and yes it is completely possible to do this with Corporations. Now that main screen where you set such options like that is done in the SDK so I can't change it. :(
 
I am having trouble merging the CvMainInterface.py file from this mod with the Main Screen Mod by Almightix, found on this forum. After merging, everything seems to work OK, except for some reason my Espionage Screen button stops working. I have posted my file, if anyone could provide a hint to help me fix this it would be much appreciated.

Thanks,
ripple01
 

Attachments

Figured this out, the CvScreensInterface.py file included in this was not updated for BtS, I've attached my version that I modified and seems to be working correctly.

Cheers,
ripple01
 

Attachments

This changes how many religions are in the game with out having to change the XML (that is unless you want more religions then what are in the XML)
 
I'm not entirely sure how to do it. If someone would be willing to upgrade it to MP or let me know how that would be great. :thumbsup:
 
Back
Top Bottom