• 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] Need help figuring out condition for event

Status
Not open for further replies.
Level 2
Joined
Dec 12, 2007
Messages
7
I am using this event, and I cant seem to figure out the condition that pertains to it.
Event-
A unit owned by player 1 (Red) Is issued an order targeting an object.

For those who are wondering, i am trying to make a henchman system similar to that of GuildWars (and NO I am not making a guildwars map) Thank you for any assistance.
 
Level 3
Joined
Oct 23, 2007
Messages
36
Well, the unit in question would be "Event Response - Ordered Unit", and the object would be "Event Response -Target Unit of Issued Order" if it's a unit, and "Event Response - Target Item of Issued Order" if it's an item. If you want to use the order, "Issued Order" would pertain to the order itself (attack, stop, move, ...etc)
 
Level 2
Joined
Dec 12, 2007
Messages
7
Okay another question...

when using the Event - A Unit comes within 'X' of Unit

How do I use a variable to represent the Unit. Because I have a Hero (Unit) variable and it does not show up in the listbox.
 
Level 6
Joined
Nov 28, 2007
Messages
203
well.. you could make a "dummy" for the unit.. (invisible, no model)
make a trigger that will make the dummy instantly move to the position of the variable unit every 0.07 sec (or something close)
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
You would need to use another trigger and use the "Trigger - Add
New Event" action, there you can use variables.

In the original event you can't use variables.

  • Trigger - Add to (Your trigger) the event (Unit - A unit comes within 256.00 of Unit_Variable)

humpadumpa stop using dummys all the time ^^
 
Status
Not open for further replies.
Top