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

Need trigger help

Status
Not open for further replies.
Level 7
Joined
Sep 19, 2007
Messages
81
Hi community i need help with 2 triggers

1. A trigger so you cant attack you allies but you can attack enemies and yourself

2. Sorta like in island defence when u right click on gold mine u use harvest gold instead of attacking
 
Level 4
Joined
Jul 24, 2008
Messages
108
Number two is easy, you need to make a gold mine, its under neutral passive i think. and give the units the harvest ability.

Number one also is easy,

Event
A unit is attacked
Conditions
((Owner of (Attacking unit)) is an ally of (Owner of (Attacked unit))) Equal to True
Actions
Order attacking unit to stop.

So now every time they try to attack, they are ordered to stop. Another possibility is go into the unit editor for every unit and change there targets to enemy and your own units only
 
Status
Not open for further replies.
Top