Okay, I have most of it figured out just the last step I don't know how to code:
[TAB][TAB][TAB][TAB]for iCity in range( len( lCities ) ):
[TAB][TAB][TAB][TAB][TAB]pCity = lCities[ iCity ]
[TAB][TAB][TAB][TAB][TAB]pCity.changeCulture( 10 )
Okay, so this has that cities in the range get 10 more culture, correct? (There's stuff before this, this is merely the end of the coding).
[TAB][TAB]if city.getNumRealBuilding(gc.getInfoTypeForString("BUILDING_A")):
That asks if the ctiy has building A, correct?
I just need to combine them, so in the final code for cities in the range, only if they have a building change the cities culture but every time I try it doesn't work. (If I don't try to include the building part it does work so it's only this part.
Can someone help me with this last step?
[TAB][TAB][TAB][TAB]for iCity in range( len( lCities ) ):
[TAB][TAB][TAB][TAB][TAB]pCity = lCities[ iCity ]
[TAB][TAB][TAB][TAB][TAB]pCity.changeCulture( 10 )
Okay, so this has that cities in the range get 10 more culture, correct? (There's stuff before this, this is merely the end of the coding).
[TAB][TAB]if city.getNumRealBuilding(gc.getInfoTypeForString("BUILDING_A")):
That asks if the ctiy has building A, correct?
I just need to combine them, so in the final code for cities in the range, only if they have a building change the cities culture but every time I try it doesn't work. (If I don't try to include the building part it does work so it's only this part.
Can someone help me with this last step?