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

Friendly Fire Trigger

Status
Not open for further replies.
Level 2
Joined
Jul 21, 2004
Messages
16
Just curious if anyone could help me rig up a system of triggers that make so if a player attacks one of his team mates, the unit (or units) are instantly polymorphed into sheep, then after 1 second are changed back?
 
Level 22
Joined
Jan 10, 2005
Messages
3,426
Just make a dummy with a polymorph based ability that costs 0 mana that can target enemies and allies.
also give the dummy -1 hp regen and 1(2) hp.

Events:
Unit is attacked
Conditions:
--------
Actions:
If: owner of attacking unit is an allie of owner of attacked unit
Then: Create 1 polymorph dummy at position of attacking unit
Order last created unit to human sorceress - polymorph attacking unit
Else: Do Nothing

PS: Make sure u base the spell off the sorc polymorph and not the neutral hostile, else it doesnt work
 
Level 16
Joined
Oct 30, 2004
Messages
1,277
Blade: its not a stupid idea.
N00by: Doesnt really matter because u can configure polymorph to target heroes and change duration, only difference between hex and polymorph is that hex can turn people into other critters too than just sheep.
 
Level 2
Joined
Nov 16, 2005
Messages
12
Ramza said:
Just make a dummy with a polymorph based ability that costs 0 mana that can target enemies and allies.
also give the dummy -1 hp regen and 1(2) hp.

Events:
Unit is attacked
Conditions:
--------
Actions:
If: owner of attacking unit is an allie of owner of attacked unit
Then: Create 1 polymorph dummy at position of attacking unit
Order last created unit to human sorceress - polymorph attacking unit
Else: Do Nothing

PS: Make sure u base the spell off the sorc polymorph and not the neutral hostile, else it doesnt work

hey i think the corret way is that no ??

If ((Owner of (Attacking unit)) Equal to (Random player from (All allies of (Owner of (Attacked unit)))))...
 
Status
Not open for further replies.
Top