• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Maximum structure amount allowed {setting a maximum amount for building}

Status
Not open for further replies.

Galinth

G

Galinth

How do I set a maximum number of a certain structure built? I'm hoping there is a way i can do it with triggers.

I have given a unit a spell based off of "build tiny farm" and want the unit to only have 1 "farm" built allowed at a time. I know this is probably a nub question.. but i can't find the answer

Thanks!!
 
I believe that if you go to the trigger editor make an Event such as "Time Elapsed is 1 Second" and make the Action:
Limit Training of Unit-Type
You will find it under the Player Category.
 
Why time elapsed = 1 second
why not in map initialization

I think it's also possible on map initialization but some functions don't work on map initialization so I prefer to make my initialization triggers at 0.01 and 1 seconds so that you have these 2 lagg spikes in quick succession and then you can play without much lagg. But mainly for me it's personal prefrence. No big deal really.
 
Status
Not open for further replies.
Back
Top