| 07-24-2003, 09:45 AM | #1 |
I'm working on a hero arena map with a heavy teamwork emphasis, and was hoping to be able to set it up so that when any player makes a kill that rewards $$, the same amount is given to each of his teammates. How can I do this? Furthermore, how can this be done while preventing players cheating by giving all their gold to one player, which will fire the shared $$ trigger and give everyone on the team more gold? Thanks. |
| 07-24-2003, 03:14 PM | #2 |
I havent tested this but i do remember seeing something in gameplay constants that was called "trading increment-normal click" and "trading increment-control click". if you dont want them to trade at all, you could do custom gameplay constants and just change both of them to 0. im not sure about making a trigger fire when people trade though sorry. |
| 07-24-2003, 03:16 PM | #3 |
yes that is correct, that should disable gold sharing. About the creeps, I do not think you can get the bounty that is given via triggers, however. you can preset a array of integers with a fixed bounty. Then depending on the unit that is killed, you grab that integer from the array and give it to all players matching player is NOT the owner of the killing unit and player is allied to owner of killing unit. |
| 07-24-2003, 03:46 PM | #4 |
Actually there's quite a simple way to do it that I use in my dungeon crawl, set the point value of all the creeps equal to the bounty recieved. Then, add this trigger to your map: Distribute Bounty ....Events ........Unit - A unit owned by Neutral Hostile Dies ....Actions ........Player Group - Pick every player in (All players) and do (If ((Picked player) Not equal to (Owner of (Killing unit))) then do (Player - Add ((Point-value of (Dying unit)) / NumPlayers) to (Picked player) Current gold) else do (Do nothing)) In my case I split the gold among all players, but you can simply remove "/numplayers". Is that what you're looking for? |
| 07-24-2003, 10:27 PM | #5 |
Thanks a lot Telp., that was exactly what I needed. |
