How can i make enemy lose of control hes unit??? so its hes unit but he cant move it etc i got spell psychic scream(aoe fear) triggers goes liek this tell me if you solve problem
Trigger named: Psychic
Trigger named: Psychic
- Unit - A unit Starts the effect of an ability
- (Ability being cast) Equal to Psychic Scream
- Set Caster = (Casting unit)
- Set Taunt = (Position of (Casting unit))
- Set Scream_run = (Units within 750.00 of Taunt)
-
Unit Group - Pick every unit in (Units within 750.00 of Taunt matching (((Picked unit) belongs to an enemy of (Owner of Caster)) Equal to True)) and do (Actions)
-
Loop - Actions
- Unit Group - Add (Picked unit) to Scream_run
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) has buff Psychic Scream ) Equal to True
-
Then - Actions
- Selection - Clear selection for (Owner of (Picked unit))
- Else - Actions
-
If - Conditions
-
Loop - Actions
- Trigger - Turn on Scream <gen>
- Wait 5.00 seconds
- Trigger - Turn off Scream <gen>
- Unit Group - Destroy unit group Scream_run
- Time - Every 0.10 seconds of game time
-
Unit Group - Pick every unit in Scream_run and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (((Picked unit) has buff Psychic Scream ) Equal to True) and ((Random integer number between 1 and 100) Greater than 33)
-
Then - Actions
- Selection - Clear selection for (Owner of (Picked unit))
- Unit - Order (Picked unit) to Move To ((Position of Caster) offset by (1500.00, 750.00))
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (((Picked unit) has buff Psychic Scream ) Equal to True) and ((Random integer number between 1 and 100) Greater than 33)
-
Then - Actions
- Selection - Clear selection for (Owner of (Picked unit))
- Unit - Order (Picked unit) to Move To ((Position of Caster) offset by (750.00, 1500.00))
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (((Picked unit) has buff Psychic Scream ) Equal to True) and ((Random integer number between 1 and 100) Greater than 33)
-
Then - Actions
- Selection - Clear selection for (Owner of (Picked unit))
- Unit - Order (Picked unit) to Move To ((Position of Caster) offset by (1500.00, 2500.00))
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions