- Reaction score
- 534
> Ye I can do the drain life part but I have no idea how to damage the units the amount of damage drained =/
Variables hold value, my friend. It's what they're used for.
But what you can do is pick every unit in the Genkidama area, and for every unit picked drain some life and mana from them. Add that amount to a variable called "GenkidamaDamage". As a loop repeats itself, it will slowly (relatively slowly...) add more and more life/mana drained.
Then, when it is the time for damage, use the variable called "GenkidamaDamage" to damage the target. Multiply it by any factor needed, naturally (such as level).
I would suggest having the "GenkidamaDamage" variable independent to every instance of the spell (as in, MUI).
> Hm, should I lower the area wich the random point can occure within?
I think the explosions and the damage aren't simply together. Seemed to me like the units not hit by the explosions lost Hit points.
> Ye this is the spell I have had the most problem in making, I will see what I can do..
Well, you could make it lateral. What I mean is that the unit isn't necessarily needed to go directly above the caster. It could go up, but still at an horizontal distance from the unit.
Because currently, with the target unit forced to go directly above the caster, you are forced to move the caster if things go wrong. Fortunately, by not raising the target directly above the caster, you can fix this problem. Then, the rest is easy: Add an explosion, and make sure there are no bugs left!
Good luck.
Variables hold value, my friend. It's what they're used for.
But what you can do is pick every unit in the Genkidama area, and for every unit picked drain some life and mana from them. Add that amount to a variable called "GenkidamaDamage". As a loop repeats itself, it will slowly (relatively slowly...) add more and more life/mana drained.
Then, when it is the time for damage, use the variable called "GenkidamaDamage" to damage the target. Multiply it by any factor needed, naturally (such as level).
I would suggest having the "GenkidamaDamage" variable independent to every instance of the spell (as in, MUI).
> Hm, should I lower the area wich the random point can occure within?
I think the explosions and the damage aren't simply together. Seemed to me like the units not hit by the explosions lost Hit points.
> Ye this is the spell I have had the most problem in making, I will see what I can do..
Well, you could make it lateral. What I mean is that the unit isn't necessarily needed to go directly above the caster. It could go up, but still at an horizontal distance from the unit.
Because currently, with the target unit forced to go directly above the caster, you are forced to move the caster if things go wrong. Fortunately, by not raising the target directly above the caster, you can fix this problem. Then, the rest is easy: Add an explosion, and make sure there are no bugs left!
Good luck.