Daskunk
SC2 Forum MVP - TheSkunk #386
- Reaction score
- 186
I have a knock back spell that works fine. (Besides lag.)
However, It slides them every 0.01 seconds, and I though it would be best if it was closer to 0.05. I did that, and It worked fine. But then it slides too slow, so I changed the amount it slides them at, and it no longer slides them in the correct directions.
The spell is a Area of effect spell.
Triggger 1:
Trigger 2: [ The bolded text is the number that, when changed, ruins the trigger. ]
Trigger 2 After being changed, which does not work:
I know the triggers are very poorly made, but I cannot see how changing that number makes them not slide correctly. . .
However, It slides them every 0.01 seconds, and I though it would be best if it was closer to 0.05. I did that, and It worked fine. But then it slides too slow, so I changed the amount it slides them at, and it no longer slides them in the correct directions.
The spell is a Area of effect spell.
Triggger 1:
Code:
Cast Knockback
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Sword Smash
Actions
Set SwordsmanP = (Position of (Casting unit))
Set Unitgroup[6] = (Units within 260.00 of SwordsmanP matching ((Owner of (Matching unit)) Equal to Player 4 (Purple)))
Unit Group - Pick every unit in Unitgroup[6] and do (Actions)
Loop - Actions
Unit Group - Add (Picked unit) to Shove
Unit - Turn collision for (Picked unit) Off
Custom script: call DestroyGroup(udg_Unitgroup[6])
Wait 0.60 seconds
Custom script: call RemoveLocation (udg_SwordsmanP)
Unit Group - Pick every unit in Shove and do (Actions)
Loop - Actions
Unit Group - Remove (Picked unit) from Shove
Unit - Turn collision for (Picked unit) On
Trigger 2: [ The bolded text is the number that, when changed, ruins the trigger. ]
Code:
Shove Copy Copy 2
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in Shove and do (Actions)
Loop - Actions
Set Leak[1] = ((Position of (Picked unit)) offset by [B]4.50[/B] towards (360.00 - (Degrees((Angle from (Position of (Picked unit)) to SwordsmanP)))) degrees)
Unit - Move (Picked unit) instantly to Leak[1]
Custom script: call RemoveLocation (udg_Leak[1])
Trigger 2 After being changed, which does not work:
Code:
Shove Copy Copy 2
Events
Time - Every 0.04 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in Shove and do (Actions)
Loop - Actions
Set Leak[1] = ((Position of (Picked unit)) offset by 18.00 towards (360.00 - (Degrees((Angle from (Position of (Picked unit)) to SwordsmanP)))) degrees)
Unit - Move (Picked unit) instantly to Leak[1]
Custom script: call RemoveLocation (udg_Leak[1])
I know the triggers are very poorly made, but I cannot see how changing that number makes them not slide correctly. . .