Hi,
I want to check if civs are playable by the AI using python. I think the isAIPlayable should return 1 or 0 depending on the civ's xml entry but I don't know what to apply this to.
Any advice?
-----
Edit - sorted
I want to check if civs are playable by the AI using python. I think the isAIPlayable should return 1 or 0 depending on the civ's xml entry but I don't know what to apply this to.
Any advice?
-----
Edit - sorted
Spoiler :
Code:
if not gc.getCivilizationInfo(pPlayer.getCivilizationType()) == None:
bAIActive = gc.getCivilizationInfo(pPlayer.getCivilizationType()).isAIPlayable()
if bAIActive == 1: