Warcraft III resources & community, 2003–2006 · archived

Does anyone know to...

11 posts
#1

Does anyone know to...

make a trigger so that when a ally attacks another ally he gets stun/hexed/slowed or something of the sort?

My map is 3v3v3v3. Thanks in advanced.
#2
event:
a unit is beeing attacked

condition:
owner of attacking unit is in random allies of owner of attacked unit

action:
pause attacking units


(or sth like that)^^
-----------------------------------
i hope this translation/solution works fine, because i m german and so i had to translate the triggers
#3
not really understanding your condition but i think i see where your going. Any more ways would be helpfull so please post.
#4
You dont want to pase the unit. I suggest making some sort of ability, such as a spike armor varient with a stun buff that only targets allied units, and skip using triggers altogether.

As for that condition listed above, its under player comparison.
-VGsatomi
#5
I think it would work better this way; create a dummy unit with the hex ability. Give it 999999 mana and set it's size to 0.01. Now make this trigger:

Events:
Unit/Generic Unit Event: A unit is attacked

Conditions:
Player Comparison: Owner of Attacking Unit Equal to (Random player from (All allies of (Owner of Attacked Unit))))

Actions:
Unit-Create Units facing Angle: Create 1 Dummy Unit for Neutral Passive at (Position of Attacking Unit)) facing (270.0) degrees
Unit-Add Expiration Timer: Add a 5 expiration timer to Last Created Unit
Unit-Issue Order Targeting a Unit: Order Last Created Unit to Orc Shadow Hunter - Hex (Attacking Unit)

I hope it's more clear. Through I fear some of the conditions may be wrong O_o. try it out anyway.

-Rui
#6
Wow, Rui i'm so glad your at theese forum man. Your awlsome and i love you. You helped me out so much, Keep up such good work you do.
#7
Your the first person that tells me that is glad to have me at these forums. Btw don't say that you love me :shock: could be... ehmm...you know what. I'm glad I helped through o.O

-Rui
#8
the condition should be Attacking unit belongs to an ally of owner of attacked unit.
#9
shadow1500the condition should be Attacking unit belongs to an ally of owner of attacked unit.


Thanks
#10
shadow1500the condition should be Attacking unit belongs to an ally of owner of attacked unit.


It's the same thing. Just that a bit harder. Lol.

-Rui
#11
Yeah i noticed it was after i typed it but i didn't feel like changing :D. Well, i got it to work somewhat. Sometimes it hex's the unit and sometimes it doesn't. Then sometimes it hex's the unit besides the unit attacking and sometimes it hex's the unit attacking. lol, i'm going to just mess around with it untill i can get it to work right.