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!
Remove it from the list, impossible, only by replacing it with a unit with less buildings to build from "Techtree - Structures Built". The other way to do such thing, is by having two triggers:
Trigger1
Events
Unit - A unit finishes construction
Conditions
((Unit-type of (Constructed structure)) Equal to X
Actions
Set AlreadyConstructed[Player Number of (Owner of (Constructing unit))] = True
Trigger - Turn off (This trigger)
Trigger2
Events
Unit - A unit finishes construction
Conditions
((Unit-type of (Constructed structure)) Equal to X
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((AlreadyConstructed[Player Number of (Owner of (Constructing unit))]) Equal to True
Then - Actions
Unit - Order (Constructing unit) to Stop
Game - Display to (Player Group(Owner of (Constructing unit))) the text: "You have already built this type of building."
Set Owner = (Owner of (Constructing unit))
Custom script: if GetLocalPlayer() == udg_Owner then
Sound - Play Error <gen>
Custom script: endif
Else - Actions
Trigger3
Events
Unit - A unit dies
Conditions
((Unit-type of (Dying unit)) Equal to X
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(AlreadyConstructed[Player Number of (Dying unit)]) = True
Then - Actions
Set AlreadyConstructed[Player Number of (Dying unit)] = False
that can be a problem with building if they can upgrade
for example
you have tower EYE and tower ZERG
EYE limit = 3
ZERG limit = 100000
now if you start EYE to upgrade to ZERG
(while upgrading) player can build more EYE towers (lets say 3)
and than he cancels upgrades to ZERG and he has 6 EYE towers
that could happen (happens in some maps)
but that all is not a problem if your limited building cannot upgrade xD
so if your really wanna stop it you wold need to count EYE towers and ZERG towers on construction
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.