• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[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.
 
  • 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.
 
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.
 
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.
Back
Top