HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Bonus Gold on Hero Kill?

07-30-2003, 01:50 AM#1
ayla
How do you make it so that when a person kills a hero, he/she recieves additional gold? Like in DOTA.

Also, how do you make it display the player name who died and the player name who killed in the text? (again, like dota)
07-30-2003, 01:52 AM#2
got_ammo
Events - A unit dies
Cond - (boolean) unit is a hero equal to true
actions - whatever you want.

as for the text, you use game-display text message, and use the concentrate strings area to link two different things together. for example under string 1 you could have convert name of owner of killing unit to player, + string 2 which could be 's hero has fallen. When you put this in the game it would turn out like: XXXXX's hero has fallen.
07-30-2003, 02:04 AM#3
ayla
Okay, where I'm stuck is on the actions... I have

Player - Add 100 to (Triggering player) Current gold... that doesn't work tho.. gives 100 gold to the guy who lost the hero, not who killed. I can't figure out how to set it to give the gold to the guy who got the hero kill?
07-30-2003, 02:07 AM#4
Pesmerga
Add 100 gold to (KILLING PLAYER)
07-30-2003, 02:16 AM#5
got_ammo
add 100 gold to owner of unit (killing unit) current gold
07-30-2003, 02:25 AM#6
Pesmerga
Quote:
Originally posted by got_ammo
add 100 gold to owner of unit (killing unit) current gold


umm, no, not unit. Player. If you would have read my post you would have seen it was already answered,
07-30-2003, 02:53 AM#7
ayla
Uhm, sorry to sound like a noob (but I am).. where are you guys getting killing player? I can't find it anywhere.

This is what mine looks like:
07-30-2003, 02:54 AM#8
Pesmerga
on the window to the right, where it says 'picked player' hit 'Owner of Unit' then Killing unit