• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Limit on buildings, how?

Status
Not open for further replies.
Level 30
Joined
Feb 18, 2014
Messages
3,623
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.
 
Status
Not open for further replies.
Top