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.

(To sumarize what I'm after: Unit dies, unit is (specific Gnoll), Killer's KilledGnolls variable =true)
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
-
-

(To sumarize what I'm after: Unit dies, unit is (specific Gnoll), Killer's KilledGnolls variable =true)