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

Question about variables

Status
Not open for further replies.
Level 17
Joined
Apr 24, 2005
Messages
762
I want to do some trigger like if one unit kills another unit it gets healed. And i want the healing thing to work on a unit group or type. I have to make a variable right? So when i create a new variable it wont show up on the variable selection list. Can someone help?
 
Level 15
Joined
Feb 9, 2006
Messages
1,598
Event - Unit dies
Condition - Dying unit equal to (dying unit of type of (YOUR UNIT) / Dying unit is in (unit group)
Action - Set life of killing unit to 100%

Don't have the editor in front of me, so that trigger is now exact, but it should be sumthing like it...No variables needed btw
 
Level 6
Joined
Dec 28, 2006
Messages
102
You must use Conditions:
Unit-Type Comparison - Unit type of dying unit = Grunt
Unit-Type Comparison - Unit type of killing unit = Footman

And maybe you used event "Specified Unit Event". It doesn't work with variables but only units which you insert in WE. You should use "Generic Unit Event".
 
Status
Not open for further replies.
Top