Hey, I'm curious how I make it that the option to create units/buildings is removed when they've reached their cap. Means, I want max. 15 Footmen, if the player has 15 Footmen, remove the unit-creation Icon from all buildings which can create them, if it's below 15 add the icon again.
That's how my trigger looks right now:
Thanks in advance
That's how my trigger looks right now:
-
limit swordsman
-
Events
-
Unit - A unit Finishes training a unit
-
-
Conditions
-
(Number of units in (Units owned by (Owner of (Trained unit)) of type Swordsman)) Greater than 5
-
-
Actions
-
Unit - Remove (Trained unit) from the game
-
Player - Add 15 to (Owner of (Trained unit)) Current gold
-
Player - Add 90 to (Owner of (Trained unit)) Current lumber
-
Game - Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player))) the text: You've exceeded the...
-
-
Thanks in advance