Your indentation is all over the place, but other than that you could just use PyHelpers for this:For a modcomp I was also working on, I am using this code to make a list of a player's cities:
Code:
import PyHelpers
...
pyPlayer = PyHelpers.PyPlayer(player)
lPlayerCities = pyPlayer.getCityList()
Here you don't wanna use PyHelpers:I am also having trouble with this code.
Code:
pPlayer = gc.getPlayer(iPlayer)
if pPlayer.isGoldenAge():