anyone know how the special holy buildings + to gold variable works?

naf4ever

Dread Lord
Joined
Feb 8, 2003
Messages
405
Location
Southeast Washington State
I notice that the special holy buildings that give +1 gold per city/that has that religeon are the only XML objects in the game that dont have to give a static increase in commerce,, but gives a variable increase to that commerce instead based on other factors.

It seems based on this that we should be able to mod it. To create a building that gives a bonus to a different commerce type and based off of a different factor instead of relgions. Say for example if you wanted to create a super library wonder that gives +1 research point for every library on the map.

I guess you could do it python but this seems unneeded since the basic process for this is already in place and being used with the special holy buildings. But looking at the XML for the special holy buildings theres nothing at all that stands out as being different from a normal building and I dont see any python files which seem to contain code that refer to them either.

Anyone have any ideas or is this beyond modding for the moment?
 
You can add:

PHP:
			<ObsoleteSafeCommerceChanges>
				<iCommerce>1</iCommerce>
				<iCommerce>1</iCommerce>
				<iCommerce>1</iCommerce>
			</ObsoleteSafeCommerceChanges>

Those are: +1 gold, +1 science, +1 culture

or:

PHP:
      <CommerceModifiers>
        <iCommerce>10</iCommerce>
        <iCommerce>10</iCommerce>
        <iCommerce>10</iCommerce>
      </CommerceModifiers>

Those are +10% each of the same things.

However, note that the reason it depends on religion is only that you must have the religion to build the building in the first place. Once you build the building you get the bonus.
 
This is definitely beyond the scope of what you can mod in XML -- the "religion count," as it were, is done in the code either at the Python or C++ level.

You will find the XML for the commerce boost in the religion files, not the buildings. I've successfully changed it to +1 research rather than commerce, but it still relies on presence/absence of the associated religion.

Here's a partial workaround: use the same concept as Cathedrals instead. Every 3 libraries you build entitles you to build another super-library, which provides +3 research (or whatever). It's partial in that it only works for your own libraries, not all libraries.

If you figure out how to decouple the holy shrines from the religions, please do post your findings!
 
I have a similar problem. What I would like to do is have a wonder that generated 1 gold for every certain city improvement build globally. For eg, if you made it so that the Chitzen Itza gave you one gold for every barracks built in your civilization, or anyone else's. Any ideas?
 
As I suggested before, I think the best you can do is approximate this. You can, perhaps, make the Wonder a pre-req for a cheap repeatable building that generates 1 gold, that you can build 1 time for each 1 barracks you own, or to keep that from being too annoying, 3 gold for every 3 barracks.
 
Back
Top Bottom