Python Help Request. Culture Changes

Taranthor

Chieftain
Joined
Dec 24, 2001
Messages
53
Hey guys I was just wondering if anyone can provide a little assistance with this :)

I want to have a mod, where culture can be used to build units/buildings and also, culture can be spent to hurry the production of said unit/building.

Is there any feasable way of doing this? And if so, how easily can it be done?

(I'm looking for something like an additional field in the unit/building xml file that is something like "buseculture") that I can simply toggle on/off and it will swap the hammer usage for culture usage.

Any assistance would be greatly appreciated and you would be credited in my mod :)
 
It should be possible... you would need to use the changeCulture method in the CyCity class. Though I don't understand why you would want to spend a cities culture.

Anyways, you would also need to use the onCityDoTurn method from the CvEventManager class and the getMaintenance from the CyCity class. The onCityDoTurn to add your code. Use the getMaintenance to get the amount of culture in the changeCulture method.
 
Back
Top Bottom