Spell Incoming Missiles

Naminator

Coming Back To Life
Reaction score
76
Here¡s another spell made for me. :D

It's GUI, leakless.

Enojoy It.

incomingmissilesea3.jpg


Code:
Incoming Missiles
    Acontecimientos
        Unit - A unit Starts the effect of an ability
    Condiciones
        (Ability being cast) Igual a Incoming Missiles 
    Acciones
        Set IM_Caster = (Triggering unit)
        Set IM_Caster_Loc = (Position of IM_Caster)
        For each (Integer A) from 1 to 8, do (Actions)
            Bucle: Actions
                Set IM_Offset[(Integer A)] = (IM_Caster_Loc offset by 200.00 towards (45.00 x (Real((Integer A)))) degrees)
                Unit - Create 1 Dummy Unit for (Owner of IM_Caster) at IM_Caster_Loc facing Vista edificio predeterminada degrees
                Unit - Add Incoming Missiles Dummy (Upgrade Level 1) to (Last created unit)
                Unit - Set level of Incoming Missiles Dummy (Upgrade Level 1) for (Last created unit) to (Level of Incoming Missiles  for IM_Caster)
                Unit - Order (Last created unit) to Hojalatero neutral: Missile Group IM_Offset[(Integer A)]
                Unit - Add a 4.00 second Generic expiration timer to (Last created unit)
        For each (Integer A) from 1 to 8, do (Actions)
            Bucle: Actions
                Set IM_Offset2[(Integer A)] = (IM_Caster_Loc offset by 350.00 towards (45.00 x (Real((Integer A)))) degrees)
                Unit - Create 1 Dummy Unit for (Owner of IM_Caster) at IM_Caster_Loc facing Vista edificio predeterminada degrees
                Unit - Add Incoming Missiles Dummy (Upgrade Level 1) to (Last created unit)
                Unit- Set level of Incoming Missiles Dummy (Upgrade Level 1) for (Last created unit) to (Level of Incoming Missiles  for IM_Caster)
                Unit - Order (Last created unit) to Hojalatero neutral: Missile Group IM_Offset2[(Integer A)]
                Unit - Add a 4.00 second Generic expiration timer to (Last created unit)
        For each (Integer A) from 1 to 8, do (Actions)
            Bucle: Actions
                Set IM_Offset3[(Integer A)] = (IM_Caster_Loc offset by 500.00 towards (45.00 x (Real((Integer A)))) degrees)
                Unit - Create 1 Dummy Unit for (Owner of IM_Caster) at IM_Caster_Loc facing Vista edificio predeterminada degrees
                Unit - Add Incoming Missiles Dummy (Upgrade Level 1) to (Last created unit)
                Unit - Set level of Incoming Missiles Dummy (Upgrade Level 1) for (Last created unit) to (Level of Incoming Missiles  for IM_Caster)
                Unit - Order (Last created unit) to Hojalatero neutral: Missile Group IM_Offset3[(Integer A)]
                Unit - Add a 4.00 second Generic expiration timer to (Last created unit)
        Custom script:   call RemoveLocation (udg_IM_Offset[bj_forLoopAIndex])
        Custom script:   call RemoveLocation (udg_IM_Offset2[bj_forLoopAIndex])
        Custom script:   call RemoveLocation (udg_IM_Offset3[bj_forLoopAIndex])
        Custom script:   call RemoveLocation (udg_IM_Caster_Loc)
 

Tom Jones

N/A
Reaction score
437
Nice one, I love the screenshot, it's well captured.
It does leak though, because your only destroying the last created location for each of the loops, but those loops create 8 locations each.

Keep it up.
 

Naminator

Coming Back To Life
Reaction score
76
Nice one, I love the screenshot, it's well captured.
It does leak though, because your only destroying the last created location for each of the loops, but those loops create 8 locations each.

Keep it up.

Thanks for your comment :D.
 
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