• 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 Editor] Unit dies

Status
Not open for further replies.
Level 4
Joined
Nov 17, 2015
Messages
91
Hello! I would like to assign a variable to whoever kills a certain unit already placed on the map. How would I go about doing that?

This is what I have tried.
  • Gnoll Antimage
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Dying unit) Equal to Anti Mage 0057 <gen>
    • Actions
      • Set KilledGnolls[(Player number of (Triggering player))] = True
Thanks for the help hive! :goblin_good_job:

(To sumarize what I'm after: Unit dies, unit is (specific Gnoll), Killer's KilledGnolls variable =true)
 
Level 10
Joined
Apr 4, 2010
Messages
509
attachment.php
 

Attachments

  • GIF.gif
    GIF.gif
    1 MB · Views: 178
Status
Not open for further replies.
Top