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

[Trigger] unit withing range trigger problem, please help :)

Status
Not open for further replies.
Level 10
Joined
Feb 19, 2006
Messages
237
im trying to make a trigger that will basically say that when a unit come withing 800 range of any deer on the map, order the deer to move to a random area of the map.

im doing this because i made a map about hunting, and i want it so that when the hunter comes close to the deer, the deer runs away, UNLESS the hunter is invisible (windwalk) can someone please help, thanks.
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
  • Events
    • Unit - a unit comes within 800 of Deer 001
  • Conditions
    • And - all conditions are true
      • Conditions
        • Unit-type of Triggering unit is equal to "Hunter"
        • Boolean - triggering unit has "Windwalk" buff equal to false
  • Actions
    • Unit - order Deer 001 to move to random point in playable map area
it leaks a point.
 
Level 10
Joined
Feb 19, 2006
Messages
237
not what i need

you see that will only work for a single deer (deer 001) not ALL the deer in the map, i dont wanna make a trigger for every deer in the map, there will be lots of them, i want a trigger that will tell ANY deer to run away from hunters if dected.
 
Level 27
Joined
Feb 22, 2006
Messages
3,052
Do what Eleandor did, except make no events in the trigger. Instead, add events using Trigger - Add Event. Make it look like this:
  • Events
    • Unit enters playable map area
  • Conditions
    • Unit - Unit Type of Triggering Unit equal to Hunter
  • Actions
    • Trigger - Add (Unit - A Unit Comes within 800 Range of Triggering Unit) to Trigger 2
Trigger 2
  • Events
  • Conditions
    • Unit - Unit type of triggering unit is equal to Deer
  • Actions
    • Unit - order triggering unit to move to random point in playable map area
Of course, there is no way to detect whether or not a hunter has windwalk or not that I know of, see if anyone else can help.
--donut3.5--
 
Status
Not open for further replies.
Top