| 07-25-2004, 06:03 PM | #1 |
I want to know how a spell's damage or any other effect from the spell can be augmented by a hero's attribute. For example, an ability that does 2 x Hero's Intelligence in damage. |
| 07-25-2004, 06:08 PM | #2 | |
Quote:
ya, know ive always wondered that to ^_^ im pretty sure it can be done but i dont know how. |
| 07-25-2004, 06:08 PM | #3 |
You would have a trigger fire when a unit casts the spell, and then deal additional damage to the unit casted on (because you can access the Heroes' stats via triggers) that way. And evilprogrammer, that is pretty much spam if you dont have information to add. You might want to refrain from it in the future. |
| 07-25-2004, 07:02 PM | #4 |
Yes, it can be done; however, doing trigger damage is not so simple (it's not hard, just a lot of triggering to do). First, when calculatig the damage, don't forget that, while the ammount of armor a unit has doesn't reduce spell damage, if a unit has Hero armor class, the spell damage is reduced (by default melee rules it is reduced to 70%; this can be changed in the gameplay constants). Next, if the damage you do with triggers (which isn't actual damage, just HP modification) would kill a unit, your hero wouldn't get experience or bounty for the kill; that problem is normaly solved by checking first, if the damage will be lethal, and if it would be, then you don't do it with triggers, but instead spawn an invisible unit for the caster of the spell with insane damage and order it to kill the target. |
| 07-26-2004, 02:27 AM | #5 |
While that sounds difficult it is is something you want for a lot of your abilities I would suggest picking up Lord Vexorians Caster system, it does the damage for you, takes care of bounty and xp, and its rather easy to use. Plus it doesnt leak, which is always good |
