| 11-22-2003, 04:31 PM | #1 |
Dataangel, I believe you once said that you could deal damage and kill "for a player" so that they get exp and bounty via JASS-based damage. How is that accomplished? |
| 11-24-2003, 12:21 AM | #2 |
Unfortunately, it's not that simple =) The way battledome accomplishes this is rather involved. I have an area of the map isolated by boundary (you might've noticed the little box below the hero selection area). When a hero is killed by a jass spell, I create two units there, first, a copy of the hero that died for its owner, and second, a custom unit with finger of death that does 999999 damage for the owner of the casting unit that killed the hero. Then I order the custom unit to use the finger of death spell on the hero copy, and give the custom unit 3 second life timer so it'll die off a little after the spell is cast. Global XP gain has to be on for this to work. |
| 12-18-2003, 04:36 AM | #3 |
hey dataangel, ive compiled a set of functions that i use in all of my custom abilities. right now it basically involves a lot of child functions and a primary function DealUnitDamage which takes the damage-dealing unit and the targetted unit. If the unit dies, bounty/gold (even lumber if its set above 0) will be awarded to the killing unit's owner, if the unit doesn't die, then the damage will simply be dealt. This includes a gold-bounty/lumber-bounty/exp-bounty floating-text triggers which i'd be happy to let u use, just email me at [email protected] . please email me instead of PM'ing me, due to my laziness in checking them :-) |
| 12-21-2003, 07:46 PM | #4 |
That's OK, my system is pretty close to that. The only reason it does all that round about stuff is for exp. I have similar functions for bounty, etc. |
