View Full Version : modding help... Capital citys


troyDoogle7
Jan 02, 2007, 11:44 AM
In the building xml there is a section for captal and govenment centre... what properites does this give the building?

I want to add an 1 extra money unit per square and reduce corruption to zero for that city. Is this possible?>

hamtastic
Jan 02, 2007, 12:59 PM
The answer is yes. I'll tell you how to do it, and I'll also tell you how to figure it out on your own next time. ;)

In "CIV4BuldingInfos.xml," each building should have a section that looks like this:

<iMaintenanceModifier>-50</iMaintenanceModifier>

Most buildings will have it set to 0. The courthouse (which is the example I'm using) has it set to -50. To reduce corruption (maintenance) to 0, set the modifier to -100.

For the extra commerce, I believe you can modify it by modifiying the <YieldChanges/> section to something like


<YieldChanges>
<iYield>0</iYield>
<iYield>0</iYield>
<iYield>1</iYield>
</YieldChanges>

In the future, you can figure these things out the same way I just did - by looking at buildings that do roughly what you want and figuring out what in the code is different. :) (I looked at the Colossus and the lighthouse for two examples of buildings that currently do Yieldchanges - although theirs are Seaplot yield changes, but anyway...)

troyDoogle7
Jan 02, 2007, 01:54 PM
thanks for the help ham, its much appreciated. The yeild was only for the sea and not for the land. so its not quite what I was after, however I have modeled it on the other currency buildings. Thanks for your help.

I am making it for the new alpha centauri mod(http://apolyton.net/forums/forumdisplay.php?forumid=24)

thanks for the help!

lshockley
Jan 02, 2007, 07:28 PM
In the building xml there is a section for captal and govenment centre... what properites does this give the building?

hi Doogle!

<bCapital>1</bCapital> - the value can be 0 or 1 - if set to 1, this building makes this city the capital city. (You can only have one capital city.)

<bGovernmentCenter>1</bGovernmentCenter> - the value can be 0 or 1 - if set to 1, this building makes this city a government center. The Palace, Forbidden Palace, and Versailles all cause the host city to be a Government Center, which reduces maintenance costs for nearby cities.

Hope this helps! -Laina