[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?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,285
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?
 
Level 1
Joined
Apr 7, 2014
Messages
3
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.
Top