Naminator
Coming Back To Life
- Reaction score
- 76
Here¡s another spell made for me.
It's GUI, leakless.
Enojoy It.
It's GUI, leakless.
Enojoy It.
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)