View Full Version : help please re:python current player


modifieda4
Sep 29, 2008, 01:57 PM
i need the code to return the current player's ID number. i know getActivePlayer() only returns the ID of the player the game is on, i need the similar function to return whos turn it is.

Thanks, sorry for the basic question, I'm new to python.

modifieda4
Sep 29, 2008, 03:56 PM
here's my code:
def doLimitedReligionsCheck(self):

iPlayer = 1
apCityList = PyPlayer(iPlayer).getCityList()
for pCity in apCityList:
for iReligionLoop in range(gc.getNumReligionInfos()):
if pCity.isHolyCityByType(iReligionLoop):

return True
break



see iPlayer=1? thats my issue. the rest of the code works.

modifieda4
Sep 29, 2008, 07:22 PM
figured it out...argsList[1]