[PYTHON] How Do I...

Zebra 9

Emperor
Joined
May 17, 2006
Messages
1,554
Location
Middle of Cyberspace
How do I give a Barb city to another player?
I know how to use Python & I downloaded the API and have read most of it. I just can't seem to figure out how give someone a city without give them a unit.:confused:
 
How do I give a Barb city to another player?
I know how to use Python & I downloaded the API and have read most of it. I just can't seem to figure out how give someone a city without give them a unit.:confused:

You probably want the acquireCity CyPlayer python function:

VOID acquireCity(CyCity pCity, BOOL bConquest, BOOL bTrade)
void (CyCity* pCity, bool bConquest, bool bTrade)

As an example:

Code:
			pPlayer.acquireCity(pCity,false,false)
 
pCity is the city to hand over, but what would happen if I set bConquest or bTrade or both of them to true?
 
pCity is the city to hand over, but what would happen if I set bConquest or bTrade or both of them to true?

I assume you will kick off any events that are triggering by taking a city in conquest or in trade. For example, if you have bConquest set to true you will probably be given the option to raze the city.
 
Back
Top Bottom