civfanatic13
Chieftain
- Joined
- Jun 25, 2010
- Messages
- 10
For some reason, I continue to receive this error and I'm not exactly sure what to do. (The code is supposed to "annex" cities by assigning one civ's city to another)
I think the problem may lye in the tIndia in the egyptAnnex. Maybe it would have to be through CyTeam (I've tried to figure it out but I've had no luck)?
If anyone could help me out here it would be greatly appreciated!
*Note - This is just a test and is based on earth 18 civs. I also have the eventmanager taken care of, no problems there.
Code:
from CvPythonExtensions import *
from PyHelpers import *
# constants
gc = CyGlobalContext()
###WB Defs
eEgypt = 0
eIndia = 1
###Player Def
pEgypt = gc.getPlayer(eEgypt)
###Team Def
tIndia = gc.getTeam(eIndia)
###pCities
pCapital = pEgypt.getCity(0)
###cCities
cCapital = pCapital.getID
def egyptAnnex():
tIndia.acquireCity(cCaptal, false, true)
If anyone could help me out here it would be greatly appreciated!
*Note - This is just a test and is based on earth 18 civs. I also have the eventmanager taken care of, no problems there.