here try this Tsunami Spell By Nantuko_Husk
http://www.wc3sear.ch/index.php?p=Spells&ID=1164&sid=3a27022985c2b79995d4085845efa3a9
it pushes units back.
here is the locust ability in trigger-
**REQUIRES MULTIPLE TRIGGERS**
**REQUIRES DUMMY SPELL AND UNIT**
**REQUIRES VARIABLES**
instructions on real variable- Make a real variable with an initial value of five
1-Events-
Unit Starts the Effect of ablity
Condition-
ability being cast equal to Your Spell
Action-Set MyCasterVariable = Triggering Unit
If All Conditions Are True do Then Actions …
If Conditions-
-MyRealVariable Equal To 5
Then Actions-
-create 1 dummy unit for owner of triggering unit position of triggering unit
-Set MyVariableA = (last created unit)
-issue MyVariableA to Undead Crypt Lord-Locust Swarm *give the dummy unit a spell based on locust swarm. change it so it only summons 1 locust.*
-Set MyRealVariable - 1
Else Actions-
Remove MyVariableA from the game
If All Conditions Are True do Then Actions …
If Conditions-
-MyRealVariable Equal To 4
Then Actions-
-create 1 dummy unit for owner of triggering unit position of triggering unit
-Set MyVariableB = (last created unit)
-issue MyVariableB to Undead Crypt Lord-Locust Swarm *give the dummy unit a spell based on locust swarm. change it so it only summons 1 locust.*
-Set MyRealVariable - 1
Else Actions-
Remove MyVariableA from the game
If All Conditions Are True do Then Actions …
If Conditions-
-MyRealVariable Equal To 3
Then Actions-
-create 1 dummy unit for owner of triggering unit position of triggering unit
-Set MyVariableC = (last created unit)
-issue MyVariablec to Undead Crypt Lord-Locust Swarm *give the dummy unit a spell based on locust swarm. change it so it only summons 1 locust.*
-Set MyRealVariable - 1
Else Actions-
Remove MyVariableA from the game
If All Conditions Are True do Then Actions …
If Conditions-
-MyRealVariable Equal To 2
Then Actions-
-create 1 dummy unit for owner of triggering unit position of triggering unit
-Set MyVariableD = (last created unit)
-issue MyVariableD to Undead Crypt Lord-Locust Swarm *give the dummy unit a spell based on locust swarm. change it so it only summons 1 locust.*
-Set MyRealVariable - 1
Else Actions-
Remove MyVariableA from the game
If All Conditions Are True do Then Actions …
If Conditions-
-MyRealVariable Equal To 1
Then Actions-
-create 1 dummy unit for owner of triggering unit position of triggering unit
-Set MyVariableE = (last created unit)
-issue MyVariableE to Undead Crypt Lord-Locust Swarm *give the dummy unit a spell based on locust swarm. change it so it only summons 1 locust.*
-Set MyRealVariable - 1
Else Actions-
Remove MyVariableA from the game
If All Conditions Are True do Then Actions …
If Conditions-
-MyRealVariable Equal To 0
Then Actions-
Remove MyVariableE from the game
Else Actions-
Do Nothing
**TRIGGER TWO**
Event-
Periotic time event- .01 seconds
Conditions-
No Conditions
Actions-
Move MyVariableA (instantly) position MyCasterVariable
Move MyVariableB (instantly) position MyCasterVariable
Move MyVariableC (instantly) position MyCasterVariable
Move MyVariableD (instantly) position MyCasterVariable
Move MyVariableE (instantly) position MyCasterVariable
____________________________________________________________________________
whew
~iplaystarcraft