SineCosine
I'm still looking for my Tangent
- Reaction score
- 77
I decided to make a spell and well, it's like a nova spell that fires off 8 projectiles outwards, but at the end of the projectiles, those projectiles "explode" and create 8more projectiles that deal damage, too.
Unfortunately, as I tried to piece together the variables and functions I'd need, I realized that doing this would be extremely tedious.
So..
Does anyone know a less-complicated method of creating novas within novas?
Or nova spells?
I always have a lot of repetition of certain codes like:
And it's so tedious, that's not even the groups for each of those projectiles included..
So..
Is there a more efficient way of creating nova spells and novas that spawn novas?
Unfortunately, as I tried to piece together the variables and functions I'd need, I realized that doing this would be extremely tedious.
So..
Does anyone know a less-complicated method of creating novas within novas?
Or nova spells?
I always have a lot of repetition of certain codes like:
JASS:
set casterX = GetUnitX(caster)
set casterY = GetUnitY(caster)
set Dummy1X = casterX + (ticks * distance) * Cos(1rad)
set Dummy1Y = casterY + (ticks * distance) * Sin(1rad)
call SetUnitPosition(dummy1, Dummy1X, Dummy1Y)
set Dummy2X = casterX + (ticks * distance) * Cos(2rad)
set Dummy2Y = casterY + (ticks * distance) * Sin(2rad)
call SetUnitPosition(dummy2, Dummy2X, Dummy2Y)
set Dummy3X = casterX + (ticks * distance) * Cos(3rad)
set Dummy3Y = casterY + (ticks * distance) * Sin(3rad)
call SetUnitPosition(dummy3, Dummy3X, Dummy3Y)
//etc. etc.
And it's so tedious, that's not even the groups for each of those projectiles included..
So..
Is there a more efficient way of creating nova spells and novas that spawn novas?