PresidentDennis
Mar 17, 2007, 08:31 PM
Is there a way I can edit population growth? I think i remember way back seeing a thing that effects how much food a citizen costs, where would such a thing be? So for example I can edit it so a "Citizen" only costs .5 food.
Sto
Mar 17, 2007, 09:02 PM
I don't know if this (http://forums.civfanatics.com/showthread.php?t=199405&highlight=food) works , i've not test it . Perhaps , it's close from what you're looking for .
Tcho !
PresidentDennis
Mar 17, 2007, 11:09 PM
I don't know if this (http://forums.civfanatics.com/showthread.php?t=199405&highlight=food) works , i've not test it . Perhaps , it's close from what you're looking for .
Tcho !
Doesn't seem to change anything. Could you tell me how to edit terrain? So I could for example make grassland give an extra food, or edit improvements so irrigation creates an extra food thing.
Sto
Mar 18, 2007, 04:38 AM
Perhaps you should ask by PM "veridia" to see if he achieve to do this or make a search with food consumsion on the forum . Sorry i was thinking this XML change had been enough .
To change the terrain or improvement , you can do like this by python :
gc = CyGlobalContext()
map = CyMap()
terrainGrass=gc.getInfoTypeForString('TERRAIN_GRAS S')
improvementFarm = gc.getInfoTypeForString('IMPROVEMENT_FARM')
# change a plot at coordinate (iX, iY) to grass land :
map.plot(iX, iY).setTerrainType(terrainGrass, True, True)
# change improvement after cleaning the plot :
map.plot(iX, iY).setImprovementType(-1)
map.plot(iX, iY).setImprovementType(improvementFarm)
Tcho !
PresidentDennis
Mar 18, 2007, 11:27 AM
What I actually meant was how can I edit the terrain so grassland gives 5 food by default. Not edit what terrain it is...