• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Need some advice on 2 spells.

Status
Not open for further replies.
Level 4
Joined
Jul 25, 2005
Messages
48
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?
 
Level 10
Joined
Aug 8, 2004
Messages
562
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
 
Level 10
Joined
Aug 8, 2004
Messages
562
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
 
Level 4
Joined
Jul 25, 2005
Messages
48
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.
 
Level 4
Joined
Jul 25, 2005
Messages
48
So it isn't possible to tell if any unit is hit by the shockwave and not the target?
 
Status
Not open for further replies.
Top