Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
Perhaps the function Player - Limit training of x unit for some player to Y value may do the trick. I don't know if it works on buildings though..
If it doesn't work then you can always trigger it by calculating the amount of x building owned by a player.
Unit - A unit Begins construction
Unit-type of (Constructing unit) Equal to Barracks
Number of Barracks owned by Triggering player Greater than 100
Unit - Remove (Constructing unit) from the game.
By the way, you didn't specify if you want to limit just one building or limit all buildings if the player has more than 100 structures.
The issue is that he wants to disable all construction when the condition is met, as I understand it.
That's a lot of Limit/disable unit-Type actions, but I suppose it works.
Other Idea would be to create a requirment Tech which is learned on map init, when one jumps over the limit (un)learn it. Then one makes all buildings require in object Editor the tech.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.