Hey guys! This is my first time triggering a MUI spell. The first time I tested it i was like "Yes! It works!" but when i tried it again it didn't work. Also the MUI part didn't really work either. If you could help me fix up this spell please!
-
my other spell
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Lightning Ring
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
A_Index[1] Equal to 0
-
-
Then - Actions
-
Trigger - Turn on Spell Loop <gen>
-
-
Else - Actions
-
-
Set A_Index[1] = (A_Index[1] + 1)
-
Set A_Index[2] = (A_Index[2] + 1)
-
Set Nova_Caster[A_Index[2]] = (Triggering unit)
-
Set Nova_Point[A_Index[2]] = (Position of Nova_Caster[A_Index[2]])
-
Set Nova_Distance[A_Index[2]] = 100.00
-
Set Nova_Angle[A_Index[2]] = 0.00
-
Set timecheck[A_Index[2]] = 0.00
-
Set Done[A_Index[2]] = False
-
For each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
-
Unit - Create 1 Dummy ball for (Owner of Nova_Caster[A_Index[2]]) at (Nova_Point[A_Index[2]] offset by Nova_Distance[A_Index[2]] towards Nova_Angle[A_Index[2]] degrees) facing Default building facing degrees
-
Unit Group - Add (Last created unit) to DummyGroup[A_Index[2]]
-
Set Nova_Angle[A_Index[2]] = (Nova_Angle[A_Index[2]] + 30.00)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Lightning Ring for Nova_Caster[A_Index[2]]) Equal to 1
-
-
Then - Actions
-
Unit - Add Permanent Immolation (1) to (Last created unit)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Lightning Ring for Nova_Caster[A_Index[2]]) Equal to 2
-
-
Then - Actions
-
Unit - Add Permanent Immolation (2) to (Last created unit)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Lightning Ring for Nova_Caster[A_Index[2]]) Equal to 3
-
-
Then - Actions
-
Unit - Add Permanent Immolation (3) to (Last created unit)
-
-
Else - Actions
-
-
-
-
-
-
-
-
-
-
Spell Loop
-
Events
-
Time - Every 0.03 seconds of game time
-
-
Conditions
-
Actions
-
For each (Integer A_Index[3]) from 1 to A_Index[2], do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Done[A_Index[3]] Equal to False
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
timecheck[A_Index[3]] Less than or equal to 30.00
-
-
Then - Actions
-
Set timecheck[A_Index[3]] = (timecheck[A_Index[3]] + 0.03)
-
Unit Group - Pick every unit in DummyGroup[A_Index[3]] and do (Actions)
-
Loop - Actions
-
Set temppoint = (Position of (Picked unit))
-
Unit - Move (Picked unit) instantly to (temppoint offset by 10.00 towards ((Angle from Nova_Point[A_Index[3]] to temppoint) - 90.00) degrees)
-
Custom script: call RemoveLocation(udg_temppoint)
-
-
-
-
Else - Actions
-
Set Done[A_Index[3]] = True
-
-
-
-
Else - Actions
-
Custom script: call RemoveLocation(udg_Nova_Point[udg_A_Index[3]])
-
Unit Group - Pick every unit in DummyGroup[A_Index[3]] and do (Actions)
-
Loop - Actions
-
Unit - Add a 0.03 second Generic expiration timer to (Picked unit)
-
-
-
Custom script: call DestroyGroup(udg_DummyGroup[udg_A_Index[3]])
-
Set Nova_Caster[A_Index[3]] = No unit
-
Set A_Index[1] = (A_Index[1] - 1)
-
Set Done[A_Index[3]] = False
-
-
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
A_Index[1] Equal to 0
-
-
Then - Actions
-
Trigger - Turn off (This trigger)
-
Set A_Index[2] = 0
-
-
Else - Actions
-
-
-