City 'no growth' option - where in python

ruff_hi

Live 4ever! Or die trying
Joined
Oct 24, 2005
Messages
9,135
Location
an Aussie in Boston
I want to be able to tell if a particular city has the 'no growth' option highlighted. How can I tell in python if this is the case?

pCity.isNoGrowth() - but that doesn't exist.
 
Not 100% sure, but this appears to be done in the SDK with AI_isEmphasizeAvoidGrowth. I don't see an interface sharing it with Python, though.

Looking at Python code on the city screen, it look it may be AI_isEmphasize(int iEmphasisType). So you may be able to pass the Emphasis type for avoid growth to this function to figure it out.
 
Not 100% sure, but this appears to be done in the SDK with AI_isEmphasizeAvoidGrowth. I don't see an interface sharing it with Python, though.

Looking at Python code on the city screen, it look it may be AI_isEmphasize(int iEmphasisType). So you may be able to pass the Emphasis type for avoid growth to this function to figure it out.
Thanks. I will give that a try. For future info ...

quote from http://civilization4.net/files/modding/PythonAPI/Types/EmphasizeTypes.html
Legend - Type List - Updates

EmphasizeTypes:

-1 = NO_EMPHASIZE
0 = EMPHASIZE_FOOD
1 = EMPHASIZE_PRODUCTION
2 = EMPHASIZE_COMMERCE
3 = EMPHASIZE_RESEARCH
4 = EMPHASIZE_GREAT_PEOPLE
5 = EMPHASIZE_AVOID_GROWTH
 
Back
Top Bottom