Hi everybody, this is the first time I post.

I searched extensively, but I didn’t manage to find anything that covers my aspect so.

I would like to apply “agent_limit” on units, meaning that when for example I build “city watch”, that building will supply me with 3 units of “spear militia”, no mater pool regeneration, if I have 3 cities with that level of barracks I can field 9 units of spear militia and no more.
In case a unit is destroyed in battle then I can create 1 more unit of spear militia.
I tried to do something similar by reducing pool regeneration dramatically, but it makes game very slow and at last AI manages to fill stacks of cheap units.
I believe that this way I will have control on the armies, AI build forcing it to build more advanced troops and field stronger armies, and also avoid being bankrupt from the fifth turn.

Thank you.