• 🏆 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!

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