• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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: 153
Status
Not open for further replies.
Top