- Joined
- Jun 24, 2009
- Messages
- 1,409
I am making request which is an instant no target spell that freezes time and units around the caster. The problem is that at the first cast the units remains paused and the dummy remains there.
All other instances are okay.
All other instances are okay.
-
Fuzetsu
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Fuzetsu
-
-
Actions
-
Set FGet = False
-
For each (Integer A) from 1 to FMax, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
FGet Equal to False
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
FRecycle[(Integer A)] Equal to True
-
-
Then - Actions
-
Set FIndex = (Integer A)
-
Set FGet = True
-
Custom script: set udg_FFreezeGroup[udg_FIndex] = CreateGroup()
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Integer A) Equal to FMax
-
-
Then - Actions
-
Set FMax = (FMax + 1)
-
-
Else - Actions
-
-
-
-
-
Else - Actions
-
-
-
-
Set FCaster[FIndex] = (Triggering unit)
-
Set FCastPoint[FIndex] = (Position of FCaster[FIndex])
-
Set FTimer[FIndex] = (2.50 + (Real((Level of Fuzetsu for FCaster[FIndex]))))
-
Set FFreezeGroup[FIndex] = (Units within 750.00 of FCastPoint[FIndex] matching ((((Matching unit) is alive) Equal to True) and ((Matching unit) Not equal to FCaster[FIndex])))
-
Unit - Create 1 Sphere for Neutral Passive at FCastPoint[FIndex] facing Default building facing degrees
-
Set FDummy[FIndex] = (Last created unit)
-
Unit Group - Pick every unit in FFreezeGroup[FIndex] and do (Actions)
-
Loop - Actions
-
Animation - Change (Picked unit)'s animation speed to 0.00% of its original speed
-
Unit - Pause (Picked unit)
-
-
-
Set FHas[FIndex] = True
-
Set FRecycle[FIndex] = False
-
Set FCount = (FCount + 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Fuzetsu Loop <gen> is on) Equal to False
-
-
Then - Actions
-
Trigger - Turn on Fuzetsu Loop <gen>
-
-
Else - Actions
-
-
-
-
Fuzetsu Loop
-
Events
-
Time - Every 0.03 seconds of game time
-
-
Conditions
-
Actions
-
For each (Integer FInteger) from 1 to FMax, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
FHas[FInteger] Equal to True
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
FTimer[FInteger] Greater than 0.00
-
-
Then - Actions
-
Set FTimer[FInteger] = (FTimer[FInteger] - 0.03)
-
Set FTempGroup = (Units within 750.00 of FCastPoint[FInteger] matching ((((Matching unit) is alive) Equal to True) and ((Matching unit) Not equal to FCaster[FInteger])))
-
Unit Group - Pick every unit in FTempGroup and do (Actions)
-
Loop - Actions
-
Animation - Change (Picked unit)'s animation speed to 0.00% of its original speed
-
Unit - Pause (Picked unit)
-
Unit Group - Add (Picked unit) to FFreezeGroup[FInteger]
-
-
-
Custom script: call DestroyGroup (udg_FTempGroup)
-
-
Else - Actions
-
Unit Group - Pick every unit in FFreezeGroup[FInteger] and do (Actions)
-
Loop - Actions
-
Animation - Change (Picked unit)'s animation speed to 100.00% of its original speed
-
Unit - Unpause (Picked unit)
-
-
-
Set FHas[FInteger] = False
-
Set FCount = (FCount - 1)
-
Unit - Remove FDummy[FInteger] from the game
-
Unit Group - Remove all units from FFreezeGroup[FInteger]
-
Custom script: call RemoveLocation (udg_FCastPoint[udg_FInteger])
-
-
-
-
Else - Actions
-
Set FRecycle[FInteger] = True
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
FCount Equal to 0
-
-
Then - Actions
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
-
-
-
-
-