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

Moster pay help

Status
Not open for further replies.
Level 2
Joined
Feb 11, 2010
Messages
29
:confused: Can someone tell me how can i make when a specific unit dies to give me gold? Like when i kill a sheep to give me 1 gold and when i kill a lizard to give me 2 gold (on TD maps)? When i try to make it i do something wrong and all units give the same money. Please help me :cry:
 
Level 8
Joined
Jan 8, 2010
Messages
493
in the Object Editor, select the unit you want to give you bounty. In your example Sheep. On its fields, go to Stats - Gold Bounty Awarded - Base. Change that to the amount you wanted your sheep to give. The Stats - Gold Bounty Awarded - Number of Dice and Stats - Gold Bounty Awarded - Sides per Die will give you a random amount of bounty from the Base amount. it goes something like this:

Minimum Bounty: Base + Number of Dice
Maximum Bounty: Base + (Number of Dice * Sides per Die)

e.g. your Base = 50, Number of Dice = 2, Sides per Die = 5
Minimum Bounty = 50 + 2 = 52
Maximum Bounty = 50 + (2 * 5) = 60

so your creep will give a bounty of 52-60 gold.

if you want your creep to always give you an exact amount, make your Base = amount - 1, and your Number of Dice and Side per Die = 1.
 

sPy

sPy

Level 22
Joined
Apr 10, 2009
Messages
380
Read my picture:
1 gold.jpg (1 gold)
2 gold.jpg (2 gold)

Example: If you want 3 gold, set the first one to (The bounty you wanted -1)
 
Level 8
Joined
Jan 20, 2010
Messages
386
or u can make a trigger - when a specific unit die (select the unit) do add an ammount of gold to (player 1)
u can do that for each unit if there are no much, or insted u can put when a unit controled by (player 2) die add an ammont of gold, and make each type of unit belong to a diferent player, if they are close to each other u can make them allies to avoid them killing each other
 
Level 8
Joined
Jan 8, 2010
Messages
493
i do but there has to be something in the trigger

wait, are you saying like there is a way to trigger it? or is it that the units you kill doesn't give you bounty at all?

set this first at map initialization:
  • Player - Turn Gives bounty On for Player
it's in the Player - Turn Player Flag On/Off
Player is the owner of the unit you want to give you bounty, e.g. Player 1, Neutral Hostile

is that what you are saying like there is something in the trigger?
 
Level 2
Joined
Feb 11, 2010
Messages
29
or u can make a trigger - when a specific unit die (select the unit) do add an ammount of gold to (player 1)
u can do that for each unit if there are no much, or insted u can put when a unit controled by (player 2) die add an ammont of gold, and make each type of unit belong to a diferent player, if they are close to each other u can make them allies to avoid them killing each other

when i do that it gives me to select but i dont know how to select it i click on it but nothing happends :cry:
 
Status
Not open for further replies.
Top