HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Bounties...How do they work!?!??!?!?

04-16-2004, 05:21 AM#1
Uther
Okay i got a problem.

How do you make it so if a hero kills a unit, like another persons hero, he gets a certain amount of money but others on his team don't. :\

i.e My hero kills blue players hero, and i get the money for killing him and
no-one else does.
Help me. I have no clue to how Variables work so i can't do this.
04-16-2004, 07:02 AM#2
Aelita Lyoko
I believe that it can be solved thought simple trigger editing. If you want the bounty to occur only between heroes, then I believe this is the right trigger:

Events: unit - A unit dies
Conditions: ((dying unit) is a hero) equal to True
((picked Unit) is a hero) equal to True
Actions: Player - Add (insert gold amount here) to (Picked player) current gold

If you want it so that if a hero dies by the hands of any unit, i think this is the right trigger:

Events: unit - a unit dies
Conditions: ((Dying unit) is a hero) equal to True
((picked Unit) is a hero) equal to False
Actions: Player - Add (insert gold amount here) to (Picked player) current gold

To be honest, i don't think that the second trigger is right. I would suggest making it so that only a hero killing a hero will get the bounty. That way, you don't have to mess with variables and complex triggers.

I hope this helps!
04-16-2004, 06:53 PM#3
ThyFlame
Turn the bounty flag on for all players with heros. When the hero gets killed, the killer gets bounty. Bounty doesn't go to allies.
04-16-2004, 11:25 PM#4
ryto
Thyflame how do you turn the bounty flag on/off? I have looked for a trigger like this but have been unable to locate it?

I have had problem with bounties myself for a while, i made units have bounties in the object editor but ingame they never gave me the bounty..
04-16-2004, 11:51 PM#5
The Gearhead
If you looked inside any TD map you'd notice the trigger.. let me dig it up from mine.

Action:
Player - Turn player flag on/off
04-17-2004, 12:04 AM#6
13layde
what ensign said ecxept a few things different
Event
A unit dies
Conditions
(both boolean)
Dying unit is a hero equal to true
Killing unit is a hero equal to true
killing unit is owned by player 1
(the last one is if you only want player one to get the killing bounty)
Actions
Add ___ to killing player's current gold


Hope that helps
04-17-2004, 01:06 AM#7
Uther
Quote:
Originally Posted by 13layde
what ensign said ecxept a few things different
Event
A unit dies
Conditions
(both boolean)
Dying unit is a hero equal to true
Killing unit is a hero equal to true
killing unit is owned by player 1
(the last one is if you only want player one to get the killing bounty)
Actions
Add ___ to killing player's current gold


Hope that helps

Sweet. It worked. Thanks a heap, now i can do bounties!! ^_^

Thanks.