• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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