| 05-01-2004, 03:34 PM | #1 |
I made some triggered spells, which have triggered damage(since the damage varies depending on many things), and I need the spell to give gold and XP if you kill a unit with the spell. I know I could do something like "Pick every unit within 1200 of killed unit matching is an ally of blah and do: Add blah XP to picked unit" "Add blah gold to owner of blah" But it doesn't look neat, as the gold bounty wouldn't show up right. I've seen it done before(in EotA), and I doubt that made a floating text for gold bounty. |
| 05-01-2004, 06:26 PM | #2 |
This is done with a dummy unit that does enough damage to kill a unit. First you check if the targeted unit would die by the trigger damage, if so then you create the dummy unit and order it to attack the targeted unit. If not, there is no problem, so you can do the damage with a trigger action. (check my site for further explanaition + an example trigger.) |
| 05-01-2004, 11:38 PM | #3 |
If you are ever planning to want to save time, use my caster system, (it uses the same process as kamux's, it is the best way to do it actually.) link is at signature |
