• 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.

How to remove a structure from worker's build list?

Status
Not open for further replies.
Level 8
Joined
Jul 17, 2004
Messages
283
How do you remove a structure from a worker's build list after it's been built a certain amount of times? (I've seen this done in Vampirism Fire...after you make a 'Wall' a certain amount of times, it's removed from the worker's build list)
 
Level 9
Joined
Dec 12, 2007
Messages
489
its probably done like this:
  • Build Check
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set Structure = (Units owned by Player 1 (Red) of type Farm)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in Structure) Greater than or equal to 6
        • Then - Actions
          • Player - Make Farm Unavailable for training/construction by Player 1 (Red)
        • Else - Actions
          • Player - Make Farm Available for training/construction by Player 1 (Red)
Structure is a unit group variable.
 
Status
Not open for further replies.
Top