Civilization ID integer

Fierabras

Emperor
Joined
Dec 26, 2006
Messages
1,120
I can't seem to figure out how you get an integer for a civilization. This code below doesn't work:

Code:
iMongolsID = CvUtil.findInfoTypeNum(gc.getCivilizationInfo, gc.getNumCivilizationInfos(), 'CIVILIZATION_MONGOL')

while this does:

Code:
iKeshikID = CvUtil.findInfoTypeNum(gc.getUnitInfo, gc.getNumUnitInfos(), 'UNIT_MONGOL_KESHIK')

Can somebody tell me what to do?

EDIT: Typical newbie mistake. It does work, but I mixed up civ integer with player integer. I need the player integer for CIVILIZATION_MONGOL
 
Doesn't that get the number of Keshiks in the game?
 
I just started writing Python today and I copied this from the Genghis Khan Warlords scenario. Apparently both give the correct integers for CIVILIZATION_MONGOL and UNIT_MONGOL_KESHIK respectively. All those 'num' things still confuse me though.
 
Back
Top Bottom