• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Solved] Adding a Unit Cap

Status
Not open for further replies.
Level 1
Joined
Apr 7, 2014
Messages
3
Hello, I've been working on my map and I want to add a limit to certain buildings where I can only have one, and if that building is destroyed, then the option to build it becomes available again. The building can also be upgraded 3 times, still preventing the construction of another. I also want to add a cap to a certain unit where I can only have 6 and if any die, the option becomes available to train more until the cap of 6 has been met.

I have tried google searching for this, to no avail and have tried reverse engineering the mothership unit cap but I just cannot get it to work properly, can someone please help?
 
All images are broken. You need to link the image file as an image and not the image entry in the hosting site.

The requirements go in the training ability. Use Mothership as an example since that is limited.

I want to add a limit to certain buildings where I can only have one, and if that building is destroyed, then the option to build it becomes available again. The building can also be upgraded 3 times, still preventing the construction of another.
Like the Terran Command Centre. You need to give all the structures an alias so that the requirement treats them as the same unit.

I also want to add a cap to a certain unit where I can only have 6 and if any die, the option becomes available to train more until the cap of 6 has been met.
Same as Mothership except with 6 as the constant instead of 1?
 
There we go, I didn't think to attach it to the ability, and instead just latched it on the unit. It's working perfectly now, thank you both for your help!
 
Status
Not open for further replies.
Back
Top