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

Trigger Request: Very Simple

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Check Townhalls
    • Events
      • Unit - A unit Begins construction
    • Conditions
      • Townhalls[(Player number of (Owner of (Triggering unit)))] Not equal to True
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Triggering unit)) Equal to Town Hall
          • (Unit-type of (Triggering unit)) Equal to Great Hall
    • Actions
      • Set Townhalls[(Player number of (Owner of (Triggering unit)))] = True
      • Wait 0.00 seconds
      • Unit - Set (Triggering unit) construction progress to 50%
Townhalls is a boolean array.

There's also boolean
  • ((Triggering unit) is A town-hall-type unit) Equal to True
you could use that instead of unit types.
 
Status
Not open for further replies.
Top