| 11-13-2002, 11:59 AM | #1 |
Guest | Would it be possible to award an amount of gold to a player when they kill another unit; this amount being a random number between X and X (min and max) amount. I know I could achieve this by setting the same bounty for every unit one by one and turning bounty on. But is this possible to achieve with just a trigger or two? |
| 11-13-2002, 07:28 PM | #2 |
Yea, but their would be so much extra codeing and waisted time, you are better off adding a bounty and turning bounty on. Basicaly it would be done the same way people did cash in starcraft, When a unit dies, add X gold to a player, but instead of just using X, you would pick a random number between Y and Z. But trust me, using the built in system is alot better. |
| 11-13-2002, 08:16 PM | #3 |
What you says is possible. Although I have never looked at that built in system. I will look at it when I get home. |
| 11-15-2002, 07:57 AM | #4 |
Guest | I finally found a solution on another board. Here is that solution: Events: -A unit owned by player 1 dies -A unit owned by player 2 dies -A unit owned by player 3 dies (one for each player) Actions: -Add (Math - Random Number between 30 and 75) to (owner of killing unit) (current gold) |
| 11-15-2002, 08:41 AM | #5 |
I hate maps that do that. I prefer bounty more because it shows you how much gold you earned. |
| 11-15-2002, 10:10 AM | #6 |
Guest | Hey I didnt even think about that! Thanks fear.factor. I'm going bounty. |
