• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[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)
 
attachment.php
 

Attachments

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