Warcraft III resources & community, 2003–2006 · archived

An Anti-Backstab Trigger?

5 posts
#1

An Anti-Backstab Trigger?

I want to make a trigger that when someone tries to attack an ally they stop.
#2
Events:
Generic Unit Event: A unit Is issued an order targeting an object

Conditions:
Boolean Comparison: (Attacked Unit) belongs to an ally of (Owner of (Attacking Unit)) Equal to True

Actions:
Unit - Issue Order with No Target: Order (Attacking Unit) to Stop


This should work. HF :wink:
#3
RuiEvents:
Generic Unit Event: A unit Is issued an order targeting an object

Conditions:
Boolean Comparison: (Attacked Unit) belongs to an ally of (Owner of (Attacking Unit)) Equal to True

Actions:
Unit - Issue Order with No Target: Order (Attacking Unit) to Stop


This should work. HF :wink:


it didnt work idk why =(
#4
Anti Backstab
    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


there u go!
#5
DurotarLord
Anti Backstab
    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


there u go!


but wouldnt this still allow me to attack once b4 its enabled

Edit: Nvm test it and it worked, thank you.