Novas within Novas

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:

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?
 

Faust

You can change this now in User CP.
Reaction score
123
If you are using loops, as I think you do, you are doing everything fine. That there doesn't look long at all.

When you try to make something really complicated/delicate, it will be long, whatever it is.
 

SineCosine

I'm still looking for my Tangent
Reaction score
77
Oh, well.
Yea, using loops

Thanks for waking me up.
Not everything is gonna' be as easy as walking =/
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top