• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Small Triggering question

Status
Not open for further replies.
Level 5
Joined
Jul 15, 2004
Messages
148
How would I make it so after a research is upgraded, a builder's building selection changes?
I.E: You research a tower upgrade, and your builder gets a new tower in place of the old one in his building selection.

I have searched the triggers, and have not found a way to do this, but im pretty sure it can be done.

And- is it possible for me to make it so that once an object is built, you cannot build another untill that one is destroyed? Thanks for all your help!
 
Level 3
Joined
Aug 5, 2004
Messages
47
Not sure

On the first part, all you do is have a trigger that replaces all of the workers with the exact copy of another worker just with different buildigns in there "buildings able to be built" I'll talk to you about this later, ON your second part, All you would do is make a variable called something like p1_tower_built, It would be an interger. Now you would have a trigger that would add 1 to the variable and have another trigger that would check to see if the variable was a certain range (i.e lessthan or equal to 5 is ok greater than 5 is not ok) I can help you with more, just email me
 
Level 8
Joined
Apr 3, 2004
Messages
507
Perhaps you could make the builder able to build all of the different levels of each building, and then restrict the player from building all but one of each building.

As the new conditions are satisfied, you then restrict building on the old "tower" and unrestrict building on the new one.
 
Level 5
Joined
Aug 26, 2004
Messages
114
Event:
When unit is upgraded

Action:
Selection - Change Player"?"s Selection to "Unit"

maybe?
 
Status
Not open for further replies.
Top