• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Money drop?

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,191
Player - enable bounty.
Or something like that.

In JASS its a integer property flag, with 1 being on and 0 being off.
It defaults to 0 so you will have to enable it for all players who should give gold.

If you mean items of gold with the gold coin ability, then make triggers drop them on unit death.
 
Level 12
Joined
May 30, 2009
Messages
829
This convenient yet simple trigger allows the enabling of bounty for all players:

  • Bounty On
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Player - Turn Gives bounty On for (Player((Integer A)))
Now Player 1 to 12 receives bounty! Note that turning on bounty simply enables the gold gain during the slaying of creeps, it does not affect the amount of gold the player receives when killing a specific unit. To change the amount of bounty a unit gives, go to the object editor and change the line Stats - Gold Bounty Awarded. Lumber can also be given. Change the integers 1 and 12 to any number you wish according to the players who are to receive bounty. (Example: Player 2, Player 6, and all the players between those two players are to receive bounty, you would edit the "Bounty On" trigger to this:
  • Bounty On
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 2 to 6, do (Actions)
        • Loop - Actions
          • Player - Turn Gives bounty On for (Player((Integer A)))
If you didn't get this you could do it like deagLeRulzZ stated above. (less efficient apparently, unless of course you want to enable bounty for only a single player)

Summary: Turn bounty on with the trigger, change the bounty resource that a specific unit gives with the object editor. :thumbs_up:
 
Status
Not open for further replies.
Top