someone please

SIMPA

Prince
Joined
Sep 17, 2007
Messages
367
Location
Zagreb,CROATIA
Hello all
I have 2 questions:
1 Does someone knows is it possible to change population like hanging gardens do but not on global level,just to change population in one city..for example you build some building and that give you 2 population only in that city....:rolleyes:

2 Where can I change how many national wonders city can build....

Thx guys and girls....:)
 
1) unfortunately there is no xml tag for iPopulationChange. You could add to the iHealth or iFreeSpecalist to give a health bonus or free specialist instead of the iGlobalPopulationChange (which is what hanging gardens does).

otherwise you would have to add to the SDK and the schema before you could actually add the tag: iPopulationChange

2) in the globaldefines.xml, in the define that says, "MAX_NATIONAL_WONDERS_PER_CITY"
 
If you're familiar with Python, you could do it manually in onBuildingBuilt (it's located in CvEventManager.py).
 
Can you publish the method you used?

Code:
	def onBuildingBuilt(self, argsList):
		'Building Completed'
		pCity, iBuildingType = argsList
		game = CyGame()

###

		if ( iBuildingType == gc.getInfoTypeForString("BUILDING_XXXXXX") ):
			pCity.changePopulation(1)


###

		if (not self.__LOG_BUILDING):
			return
		CvUtil.pyPrint('%s was finished by Player %d Civilization %s' 
			%(PyInfo.BuildingInfo(iBuildingType).getDescription(), pCity.getOwner(), gc.getPlayer(pCity.getOwner()).getCivilizationDescription(0)))

You can add an XML help txt to the BuildingInfos XML file if you want it to read "+1 Population" etc.
 
Back
Top Bottom