• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[General] How do I make it so that when a specific unit type kills any type of unit, player gets 100 gold?

Level 2
Joined
Jun 13, 2018
Messages
4
So, I would do the other thing on here, but I am not sure how to write it, so I will attach a screenshot of the triggers that I made.
1705073659118.png

Where did I mess it up? First line says "A unit dies".
 

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,583
The Event Responses for when a unit dies are the following:

(Dying Unit) = The unit that died
(Killing unit) = The unit that killed it
(Triggering unit) = Same as (Dying unit)

Then you would Add the gold to the (Owner of (Killing unit))

You're currently using Event Responses for the Unit - A unit is attacked event.

Also, you don't need to use screenshots:
 
Top