def onCityAcquired

platyping

Sleeping Dragon
Joined
Oct 22, 2010
Messages
4,626
Location
Emerald Dreams
Hi guys, I am doing some tests to see whether liberation is counted as onCityAcquired as well.

Spoiler :
Code:
	def onCityAcquired(self, argsList):
		'City Acquired'
		iPreviousOwner,iNewOwner,pCity,bConquest,bTrade = argsList
## Trial
		pPlayer1 = gc.getPlayer(iNewOwner)
		pPlayer2 = gc.getPlayer(iPreviousOwner)
		pPlayer1.changeGold(7777)
		pPlayer2.changeGold(11111)
## Trial End
		CvUtil.pyPrint('City Acquired Event: %s' %(pCity.getName()))
Well, the most visible changes would be to give gold so i set it up as above.

Results:
If I conquer the city, as the NewOwner, i get the 7777 gold + whatever I pillage.
If I liberate the city, as the PreviousOwner, i get the 11111 gold.
However, in both cases, the other party didn't get any gold. Why is this so?:confused:
 
What makes you think they didn't get any gold? If you are relying on the trade screen when you are talking with them, or the amount displayed on the foreign advisor tech screen (the same amount), don't - the gold available for trade on that screen is not all their gold, just the amount of gold that they are willing to use in trade at that time which is almost always less than what they really have.
 
Back
Top Bottom