• 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.

Does anyone know to...

Status
Not open for further replies.
Level 4
Joined
Jan 23, 2005
Messages
65
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
 

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
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
 
Level 5
Joined
Mar 17, 2005
Messages
135
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.
 
Status
Not open for further replies.
Top