# Knockback MUI

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
This Is a simple knockback spell. After All this is my first MUI Spell using indexing.
here are the triggers :
The Main Trigger:
• Knockback
• Events
• Unit - A unit Starts the effect of an ability
• Conditions
• (Ability being cast) Equal to KnockBack
• Actions
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• If - Conditions
• integer[0] Equal to 0
• Then - Actions
• Trigger - Turn on Loop <gen>
• Else - Actions
• Set integer[0] = (integer[0] + 1)
• Set integer[1] = (integer[1] + 1)
• Set Caster[integer[1]] = (Casting unit)
• Set Target[integer[1]] = (Target unit of ability being cast)
• Set Point[integer[1]] = (Position of Caster[integer[1]])
• Set Duration[integer[1]] = ((Level of KnockBack for Caster[integer[1]]) x 15)
The Loop Trigger :
• Loop
• Events
• Time - Every 0.10 seconds of game time
• Conditions
• Actions
• For each (Integer integer[2]) from 1 to integer[1], do (Actions)
• Loop - Actions
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• If - Conditions
• Duration[integer[2]] Greater than 0
• Then - Actions
• Special Effect - Create a special effect at (Position of Target[integer[2]]) using Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
• Special Effect - Destroy (Last created special effect)
• Unit - Move Target[integer[2]] instantly to ((Position of Target[integer[2]]) offset by (Real(Duration[integer[2]])) towards (Angle from Point[integer[2]] to (Position of Target[integer[2]])) degrees)
• Set Duration[integer[2]] = (Duration[integer[2]] - 1)
• Else - Actions
• Set integer[0] = (integer[0] - 1)
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• If - Conditions
• integer[0] Equal to 0
• Then - Actions
• Set integer[0] = 0
• Set integer[1] = 0
• Trigger - Turn off (This trigger)
• Else - Actions

Keywords:
MUI, jms, Knockback
Contents

# Knockback (Map)

Reviews
11:47, 21st Dec 2009 TriggerHappy: Review for Spell This knocback depreciates this one. I may approve this one if you add more features, like detecting when the unit is in water and creating a splash effect instead of dust. You...

M

#### Moderator

11:47, 21st Dec 2009
TriggerHappy:
 Review for Spell This knocback depreciates this one. I may approve this one if you add more features, like detecting when the unit is in water and creating a splash effect instead of dust. You should also make the effect configurable.. create a init trigger that just has variables for you to set. You are also leaking quite a bit. Status Feel free to message me here if you have any issues with my review or if you have updated your resource and want it reviewed again. Rejected

#### Slaydon

Level 20
ehm, why do you create variables, not using all of them and forget to clean them (Point)

#### jms

Level 5
where do i put the " call Remove... " ?? in the init trigger ? in the end of the loop trigger ? plz tell me i am new to index MUI..

#### Slaydon

Level 20
you dont even use the point, you create a new one to lag, i would set the unit to the caster, and in the knockback set it before the Fx and remove it afterwards

#### Upgrade

Level 7
• Unit - Move Target[integer[2]] instantly to ((Position of Target[integer[2]]) offset by (Real(Duration[integer[2]])) towards (Angle from Point[integer[2]] to (Position of Target[integer[2]])) degrees)
((Position of Target[integer[2]]) leak @__@..

Example_Location = Position of Target[integer[2]

• Unit - Move Target[integer[2]] instantly to (Example_Location) offset by (Real(Duration[integer[2]])) towards (Angle from Point[integer[2]] to (Example_Location) degrees)
• Special Effect - Create a special effect at (Position of Target[integer[2]]) using Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
Leaks.Create a point/location which is Position of Target[Integer[2]])
• Special Effect - Create a special effect at (Example_location) using Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
And then a Custom script thats removes the Example_Location
• call RemoveLocation( udg_Example_Location )

Level 5
k thx +rep for u

Replies
7
Views
2K
Replies
3
Views
1K
Replies
16
Views
16K
Replies
33
Views
6K
Replies
2
Views
2K