| 11-02-2009, 08:12 PM | #1 |
well, How can i set the dmg of a skill based off the casting unit's attack damage? that's all :], well i mean how can i detect a unit's attack damage?. |
| 11-02-2009, 08:23 PM | #2 |
You can't, unless you hard-code the caster's attack damage into the spell (which can be tricky if the caster is a hero and there are many items and spells in your map that modify attack damage). |
| 11-02-2009, 08:25 PM | #3 |
in the knew, small Gaia's retalitation Rpg (i misspelled it i think), they have done it, and works perfectly fine :\. i just hoped i can do some thing like that, oh well guess my spells will be based of strenght |
| 11-02-2009, 09:50 PM | #4 |
if you use something like BonusMod to do _all_ attack damage bonuses in your map, then you can mathemagically find out a unit's attack damage quite easily. You still have to hardcode the casters base damage stats, and primary attribute if it's a hero. Take a unit's base damage, add the bonus from BonusMod, add the amount strength/int/agi effect it, and you're done. |
| 11-02-2009, 10:12 PM | #5 | |
Quote:
|
| 11-03-2009, 04:17 AM | #6 |
try searing arrows without bonus damage. it deals the caster's attack damage + bonus damage. if bonus damage == 0.00, you get the caster's attack damage only. use a damage detect system to detect when the target takes damage with the buff, and multiply/play with the damage in a damage response function. since its an 'attack-autocast' spell, you might want to trigger something to prevent it from being autocasted if you want to use it just as a spell. |
