Event that fires when a unit is produced in a city?

abob101

Chieftain
Joined
Dec 28, 2014
Messages
56
Hi all,

I'm trying to figure out a way of throttling the production of a certain type of unit in each city. Specifically, when a unit is produced (or purchase) in a city with unitclass = X, it should not be able to produce another unit of unitclass = X for say 10 turns.

I believe I can use the event CityCanTrain to add some extra validation. But I need to be able to keep track of the number of turns remaining (or since) unitclass = X was produced - a timer countdown per city. Storing the value should be easy enough.... but I can't find an event that fires when a city produces a unit (that I can use to set the timer) ?

Any ideas? Is my thinking all wrong?

Thanks.
 
Back
Top Bottom