Okay, so just a few minutes ago i'm messing around in world editor and I got an idea for a different kind of spell I've never seen used before. I don't mean a different element, I mean a different way to deal damage.
Let's say I have a spell, "Fireball". This fireball is target specific, as in it only affects one unit.
Lets say the unit i'm targetting is right infront of me. The spell itself says it will deal 200 damage, so the target gets hurt by 200 damage. Right. That's completely easy.
But now my idea gets interesting. Lets say the target is a good 300-400 range away. I fire the spell. But NOW the spell has decreased accuracy because the target is farther away, so lets say 75% accuracy. It also decreases its damage, so 75% damage.
This will go on and on untill it reaches a range where the accuracy will be 0%, and the damage will be 0%.
So I wanted to know if it's possible to do this kind of thing. I'd make the spell have infinite range, but the farther the target the less chance the spell has of hitting and the less damage it deals. Any ideas on how to do this? if it MUST be done in JASS, please give me the code to put in custom script because I have no idea how to do JASS.
Let's say I have a spell, "Fireball". This fireball is target specific, as in it only affects one unit.
Lets say the unit i'm targetting is right infront of me. The spell itself says it will deal 200 damage, so the target gets hurt by 200 damage. Right. That's completely easy.
But now my idea gets interesting. Lets say the target is a good 300-400 range away. I fire the spell. But NOW the spell has decreased accuracy because the target is farther away, so lets say 75% accuracy. It also decreases its damage, so 75% damage.
This will go on and on untill it reaches a range where the accuracy will be 0%, and the damage will be 0%.
So I wanted to know if it's possible to do this kind of thing. I'd make the spell have infinite range, but the farther the target the less chance the spell has of hitting and the less damage it deals. Any ideas on how to do this? if it MUST be done in JASS, please give me the code to put in custom script because I have no idea how to do JASS.