Warcraft III resources & community, 2003–2006 · archived

Need some advice on 2 spells.

8 posts
#1

Need some advice on 2 spells.

Hi, I am trying to make a wave spell that pushes knocks units back, how would I do this, someone told me you don't even need triggers for it, I can't seem to find the right ability to do it tho.

Also I am trying to make a spell that is like the locust swarm, but it only summons one each time you do it and adds to them, and has a maximum of 5, and when they summon over 5 one dies, how would I do this where they get added?
#2
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
#3
i just found out a way to do all of that in less actions.
Here it is:
***YOU ONLY NEED 2 VARIABLES, ONE UNIT VARIABLE AND ONE REAL VARIABLE***

f All Conditions Are True do Then Actions …
If Conditions-
If MyRalVariable is equal to 0
Then Actions-
-Remove MyVariableA from the game
Else Actions-
-create 1 dummy unit for owner of triggering unit position of triggering unit
-Set MyVariablea = (last created unit)
-issue MyVariable 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
#4
Thanks starcraft, I can't use that Tsunami spell because I wanted to change some stuff to it and I don't know how to use that code. I am trying to make a shockwave that pushes units back, I think I know how to do the push back, but how do I make it so that all the units hit by the wave get pushed back, right now I can only do the target of the shockwave.
#5
(im to sure if this will work) creat a dummy unit ,with permenatnt immolation, that moves to target point and have a trigger that activates when a unit gets a certain buff (the custom immolation buff) then do the push back
#6
(im to sure if this will work) creat a dummy unit ,with permenatnt immolation, that moves to target point and have a trigger that activates when a unit gets a certain buff (the custom immolation buff) then do the push back.
oh btw did the locust thing work?


~iplaystarcraft
#7
So it isn't possible to tell if any unit is hit by the shockwave and not the target?
#8
unless it has a buff, no i dont think so