Warcraft III resources & community, 2003–2006 · archived

1 building only trigger help

8 posts
#1

1 building only trigger help

I have tried for the last 3 days to make a trigger to make it so you can only build 1 type of building, but to no avail.I.E:i build a human barracks, i then build another human barracks, as soon as the second human barracks is finished, it explodes w/ a mssg saying "you can only build one human barracks" plz tell me the trigger............i also have another question, i tried to make a upgrade similear to berserk trolls upgrade, everything works, the already existing unit changes....the original icon disapears, and NOTHING appears in its place, help plz
#2

ok

If you know how to use variables, this should work.
1. Create a Integer Variable and name it w.e
2. Set the event to something like ordered to construct a building or building is constructed or w/e
3. Set the action to: If/then/else
a.Set the condition of if to: Varible is less than 2=True
b. Action: Set Variable=Varaible+1
c. If not: Order unit to stop or something like that.

I just came up with it quickly, so I'm not sure if it will work. Theoratically it should. Good Luck
-Blue
#3
i should have thought of using a variable.......well thnx alot 131ue dragon, can someone answer my other question? :?:
#4
1.) Just do Player-LimitBuilding of unit type)
2.)Under the upgrade just change (Art-Icon) to w/e u want it to be

Hope this helped
-lorothrigs
#5
can someone answer my question about the berserker troll upgrade? THe upgrade is called fierceness, it upgrades dogs into fierce dogs thnx to more brutal training, when the upgrade is used, it sets off the fierceness upgrade ability, transforming all dogs owned by that player to turn into fierce dogs, however, in the building that trains them, the dog training icon disapears, and the train fierce dog does not appear toi take its place.
#6
Techtree - Units Trained

add the Fierce Dog
#7
Do your research.

Take a close look at the upgrades that a Troll Headhunter uses and what those upgrades do, and then take a close look at the units trained by the Barracks, and the upgrades that a Barracks uses.

Alternatively, the same can be said of Steam Tanks and the Workshop.
#8
Here are the steps to get this to work, for the dogs that is...

Make an upgrade, copied from berserk, call it fierceness, change the units from Headhunter -> Berserker and make it Normal Dog -> Fierce Dog

Make the Fierce Dog have a requirement of the Fierceness upgrade.

Make the Kennel or whatever be able to hire Fierce Dogs and the Normal ones.

When researched it should replace the Normal with the Fierce if you set the upgrade correctly.