| 10-07-2003, 04:55 AM | #1 |
...how to prevent a specific player from gaining bounty from kills? |
| 10-07-2003, 06:06 AM | #2 |
you could just use triggers to kill all of his units...of course this wouldn't be easy but if a unit uses a trigger to kill his opponent he gets niether exp nor gold. basically you could make him do no damage but create a trigger that does a set amount of damage every time he attacks.....my world editor is not open but it could look something like this event- unit attacks condition- unit is equal to (your unit that gets no bounty) (edit;(just saw you wanted a player to not get bounty)) owner of triggering unit is equal to (player that gets no bounty) event- set life of attacked unit to -50 life of attacked unit that is just a rough idea of what you could do. if you would like to give him exp you could add some triggers to give him exp when he kills a creep too. alternatively you could set a trigger for all creeps after you figure what thier bounty is. set it to an amount and don't add dice and all that jazz than make a trigger event- unit dies condition- unit is equal to (creep name here) owner of killing unit is equal to (player with no bounty) event- set (player with no bounty)'s gold to (player with no bounty)'s gold -(amount of gold the creep gives) these are just some ideas that just hit me. prob other easier ways. but i'm just a wierd kinda guy and i like doing things the nice and hard way. |
| 10-07-2003, 05:07 PM | #3 |
I think there is a very simply way to do this. In map initialization trigger add this action: --->Turn player flag on/off I hope is this the thing u need |
| 10-07-2003, 05:35 PM | #4 |
player flags only determines wheter a players units give bounties or not, If you want to have only certain people get bounties you either have to prevent certain players from getting kills(using triggers to deal damage instead of the unit itself) or don't use bounties and use triggers to give gold players when they kill units(disadvantage: not worth the work to make the little gold numbers show up when you make kills, advantage: you have alot more control over who gets gold) |
| 10-07-2003, 09:00 PM | #5 | |
Quote:
That's a great suggestion...I'll set each unit's point value = bounty and then subtract that from the player's gold whenever he kills anything. Hadn't thought of that! Thanks Supra :D |
