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

Ally attack/Self attack

Status
Not open for further replies.
Level 3
Joined
Dec 24, 2008
Messages
63
Hi there!

I've searched the forum but couldn't find anything about this.


Okay here's my problem. When you use this trigger for no allied attack it works for allies.
  • No Allied Attack
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Owner of (Attacking unit)) is an ally of (Owner of (Attacked unit))) Equal to True
    • Actions
      • Unit - Order (Attacking unit) to Stop
But if you wanna attack your own buildings/workers it stops to.
How to make your self able to attack your own besides customing the spell "Unsummon buildings"?

Thanks /Tozza
PS: +rep for the one who comes with a solution. :)
 
Level 7
Joined
Feb 26, 2011
Messages
238
Here You Go!

  • Events
    • Unit -A unit Is attacked
  • Conditions -
    • ((Owner of (Attacking unit)) is an ally of (Owner of (Attacked unit))) Equal to True
    • (Owner of (Triggering Unit)) Not Equal To (Owner Of attacked unit)
  • Actions-
    • Unit - Order (Attacking unit) to Stop
 
Last edited:
Level 3
Joined
Dec 24, 2008
Messages
63
  • Events
    • Unit -A unit Is attacked
  • Conditions -
    • ((Owner of (Attacking unit)) is an ally of (Owner of (Attacked unit))) Equal to True
    • (Owner of (Triggering Unit)) Not Equal To (Owner Of attacked unit)
  • Actions-
    • Unit - Order (Attacking unit) to Stop

Didn't work but was just to change
  • (Owner of (Triggering Unit)) Not Equal To (Owner Of attacked unit)
to
  • (Owner of (Attacking unit)) Not equal to (Owner of (Attacked unit))
Thanks alot +rep :)
 
Status
Not open for further replies.
Top