GUSTAVUS II
Chieftain
I'm making a mod called All History.
I need to make a civ become a another civ while using the same world builder team
number. I won't have the limitations of total civs in my game if I figure this out!
I need to make a civ become a another civ while using the same world builder team
number. I won't have the limitations of total civs in my game if I figure this out!
Code:
#TURN 200: CARTHAGE CHANGES TO VANDALS
elif(iGameTurn == 200):
#Carthage Changes Leadership
iNewPlayer = 0 # Player ID (= player's position in list) in your Map
self.CarthagebecomesVandal(iNewPlayer, 13, 36)[CODE]
[CODE]def CarthagebecomesVandal(self, iNewPlayer, iX, iY):
pNewPlayer = gc.getPlayer(iNewPlayer)
if(pNewPlayer.isAlive()):
#Create new Player
pNewPlayer.setPlayable(True)
g.addPlayer(iNewPlayer, pNewPlayer.getTeam(),pNewPlayer.getPersonalityType(), pNewPlayer.getCivilizationType(pNewPlayer,1))
pNewPlayer.initUnit(gc.getInfoTypeForString("UNIT_WORKER"), iX, iY, UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_NORTH)
#Add a message on screen
CyInterface().addMessage(g.getActivePlayer(),true,15,"Year %s: The (%s) have had a revolution !" %(g.getGameTurnYear(), pNewPlayer.getCivilizationDescription(pNewPlayer.getCivilizationType())),'',0,'',ColorTypes(11), 1, 1, True,True)
return[CODE]
I AM SPECIFICLY HAVING PROBLEMS WITH THIS LINE ONLY:
[CODE]pNewPlayer.getCivilizationType(pNewPlayer,1))[CODE]
THE NUMBER ONE IS SUPPOSEDLY THE INTIGER I NEED TO SPECIFY THE SECOND CIV IN MY CIVILIZTION_INFOS LIST
I get "Argument Error: Python argument types in
CyPlayer.getCivilizationType(CyPlayer,CyPlayer,int)
did not match C++ signature:
getCivilizationType(class CyPlayer{lvalue})
I tried to figure this out on my own, I could find nothing on google or fanaticsforums
about this problem. Please Help.