• 🏆 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!

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