Limit the amount of structures a unit can build?

Status
Not open for further replies.
Level 12
Joined
Dec 2, 2016
Messages
733
Maybe I missed this. But does such a property exist for buildings?

Like for example, I want to limit the amount of farms my peasant can build. Is that a built in property or does it require triggering?

If it does require trig, what's the best way to go about that? Count how many structures are built of the same type and by owner of the triggering unit, then remove the build type from his build tree?
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
there is a fairly easy action for that which does exactly what you want.

  • Player - Limit Training of unit-type "your building" to "your desired amount" for player X
just put it in a trigger at the beginning of your game for ever player (small Loop) and you are set
 
Level 6
Joined
Sep 7, 2017
Messages
207
there is a fairly easy action for that which does exactly what you want.

  • Player - Limit Training of unit-type "your building" to "your desired amount" for player X
just put it in a trigger at the beginning of your game for ever player (small Loop) and you are set
Situation solved. :)
 
Status
Not open for further replies.
Top