Is this spell is MUI?
im trying to make when the caster move away with distance of greater than 1000 on his unit the unit will unable to make action either move or attack. but when caster move with distance lessthan 999 the unit the unit will able to do any action.
IS THE SPELL IS MUI ?? ITS ONLY MPI but i wanna really do it MUI too.
Need some help
-
Trigger 1
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to (some spell)
-
-
Actions
-
Set X = (X + 1)
-
Set Caster[X] = (Triggering unit)
-
Set CasterPoint[X] = (Position of Caster[X])
-
Set CasterP[X] = (Triggering player)
-
Set Distance[X] = 1000.00
-
Set TempPoint[X] = (Target point of ability being cast)
-
Unit - Create 1 (someunit) for CasterP[X] at TempPoint[X] facing Default building facing degrees
-
Set Turret[X] = (Last created unit)
-
Set TurretPoint[X] = (Position of Turret[X])
-
Set DummyLimiter = (DummyLimiter + 1)
-
Set DummyLimiterUnitID[DummyLimiter] = Turret[X]
-
Custom script: call RemoveLocation(udg_TurretPoint[udg_X])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in (Units owned by (Owner of Caster[X]) of type Turret)) Greater than 3
-
-
Then - Actions
-
Unit - Remove DummyLimiterUnitID[(DummyLimiter - 3)] from the game
-
-
Else - Actions
-
-
-
-
Dummy Disabled
-
Events
-
Time - Every 0.03 seconds of game time
-
-
Conditions
-
Actions
-
For each (Integer Y) from 1 to X, do (Actions)
-
Loop - Actions
-
Set CasterPoint[Y] = (Position of Caster[Y])
-
Set TurretPoint[Y] = (Position of Turret[Y])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Distance between CasterPoint[Y] and TurretPoint[Y]) Greater than or equal to Distance[Y]
-
-
Then - Actions
-
Special Effect - Create a special effect attached to the origin of Turret[Y] using Abilities\Spells\Orc\Purge\PurgeBuffTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Animation - Change Turret[Y]'s vertex coloring to (0.00%, 0.00%, 0.00%) with 0.00% transparency
-
Animation - Change Turret[Y]'s animation speed to 0.00% of its original speed
-
Unit - Pause Turret[Y]
-
-
Else - Actions
-
Animation - Change Turret[Y]'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
-
Animation - Change Turret[Y]'s animation speed to 100.00% of its original speed
-
Unit - Unpause Turret[Y]
-
-
-
Custom script: call RemoveLocation(udg_CasterPoint[udg_Y])
-
Custom script: call RemoveLocation(udg_TurretPoint[udg_Y])
-
-
-
-
IS THE SPELL IS MUI ?? ITS ONLY MPI but i wanna really do it MUI too.
