• 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.

how to make the player that killed a unit gain recoures

Status
Not open for further replies.
Level 24
Joined
May 9, 2007
Messages
3,563
Under the object editor, there is a field called bounty. Set this to 100 gold and 100 lumber.

From there, you can go to the trigger editor. Make a new trigger that has the event "Map Inizilization". Then create 8 actions. These are PLAYER actions. Under "Player Flag On/Off", enable it for all your players.

You could also create a trigger, that has the event "When a unit dies". From there, Use another player action, and use "Add Property". Add 100 gold to "Owner of Unit > Killing Unit". Do the same for lumber.

As a not for the future, but more time into your posts if you want to recieve help.
 
Status
Not open for further replies.
Top