Changing number of city requirements for select National Wonders

Theresa

Chieftain
Joined
Aug 24, 2010
Messages
20
Location
Boston, MA
Hey all,

I want to change the number of required cities for a few of the national wonders (Oxford university, Wall Street, Globe Theatre and Forbidden Palace).

I found the icitiesprereq tag in the Civ4BuildingInfos file and this seems to be the number to modify.

But I'm not 100% sure that's it because it's set to 0 and I would have thought it would have been set to 6.

Does anyone know if this number is left at 0 because it changes depending on the size of map I'm using (i.e., depends on the optimal city number)?

Also, for the Forbidden Palace, I'm required to have 8 cities total, but I wanted to change this to 4 cities total (I'm using a small map, so each civ is limited to the number of cities it can actually have). I'm not sure where to change this number...

Thanks for any help!
 
The Forbidden Palace doesn't have all that much use even on small maps if you only have 4 cities...

I'm afraid I don't know how to help you, though. Sorry. At a guess, because these things do vary with map size, there's a file somewhere that maps map size to # cities required for the various relevant national wonders.
 
Only the Palace and Forbidden Palace (BUILDING_GREAT_PALACE in CIV4BuildingInfos.xml) use the iCitiesPrereq tag.

The others are not based on number of cities, but number of buildings. Look at the PrereqBuildingClasses tag. For example, Oxforf University has this:
Code:
			<PrereqBuildingClasses>
				<PrereqBuildingClass>
					<BuildingClassType>BUILDINGCLASS_UNIVERSITY</BuildingClassType>
					<iNumBuildingNeeded>4</iNumBuildingNeeded>
				</PrereqBuildingClass>
			</PrereqBuildingClasses>
That makes it require that there be 4 universities somewhere in your empire before you can build it.

This number is scaled by map size. In CIV4WorldInfo.xml each map size has a iBuildingClassPrereqModifier value. The number of the the prereq buildings you need on a map of each of the sizes is increased by the percentage for that size. In regular unmoded BtS it is +0% for duel and tiny, +25% for small, +50% for standard, +75% for large, and +100% for huge. That is why it takes 6 Universities to build Oxford on a standard size map, 4 + 50% of 4 = 6.
 
Thanks God-Emperor, that helped out a lot. I have a mod where I've set the iBuildingClassPrereqModifier to 0 for all map sizes so that it would never change my pre-set iNumBuildingNeeded value of 3 for Oxford, Globe and Wall St.

And I have my Forbidden Palace (Great_Palace) iCitiesPrereq modifier set to 4 (instead of 8) since I've also set the iTargetNumCities to 4 for all map sizes in CIV4WorldInfo.xml.

I think all those edits should do the trick...
 
Back
Top Bottom