• 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 do i make so you can capture a building simply attacking it?

Status
Not open for further replies.
Level 28
Joined
Jan 26, 2007
Messages
4,789
This belongs in the trigger-section!

It's actually a really, really simple trigger...

  • Change Owner
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Triggering unit)) Equal to Castle
          • (Unit-type of (Triggering unit)) Equal to Keep
      • (Percentage life of (Triggering unit)) Less than or equal to 10.00
    • Actions
      • Unit - Change ownership of (Triggering unit) to (Owner of (Attacking unit)) and Change color
Notes:
  • Add all buildings that need to change owner when attacked in the or (multiple Conditions)-part
  • I've changed it when the HP is below 10%, but you can set it to anything you want (or regular real values, like 500HP).
 
Status
Not open for further replies.
Top