• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Triggering Help

Status
Not open for further replies.
Level 3
Joined
Apr 20, 2005
Messages
34
Ok, for this spell, the easiest way to describe it is, if you know the story of moses, and how he split the sea...this is the opposite of that using 2 stampede spells. The only problem is that the position that the units pop up in isnt always correct, infact it never is. Upon casting, the spell should create 5 differecnt points: 1- the position of the caster. 2- a 250 offset point to the left of the caster. 3- same as 2, except to the right of the caster. 4 and 5- a 250 offset infront of points 2 and 3 facing outward the diection the caster is facing. From these last two points, a dummy unit will spawn from each. These 2 units will be ordered to cast stampede at the others position. Take a look...

Tsunami
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Tsunami
Actions
Wait 0.50 seconds
Set Tsunami[1] = (Position of (Casting unit))
Set Tsunami[2] = (Tsunami[1] offset by 250.00 towards ((Facing of (Casting unit)) - 90.00) degrees)
Set Tsunami[3] = (Tsunami[2] offset by 250.00 towards ((Facing of (Casting unit)) + 90.00) degrees)
Set Tsunami[4] = (Tsunami[2] offset by 250.00 towards 270.00 degrees)
Set Tsunami[5] = (Tsunami[3] offset by 250.00 towards 270.00 degrees)
Unit - Create 1 Tsunami Elemental for (Owner of (Casting unit)) at Tsunami[4] facing ((Facing of (Casting unit)) + 90.00) degrees
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Neutral Beastmaster - Stampede Tsunami[5]
Unit - Create 1 Tsunami Elemental for (Owner of (Casting unit)) at Tsunami[5] facing ((Facing of (Casting unit)) - 90.00) degrees
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Neutral Beastmaster - Stampede Tsunami[4]
Wait 1.00 seconds
Custom script: call RemoveLocation( udg_Tsunami[1] )
Custom script: call RemoveLocation( udg_Tsunami[2] )
Custom script: call RemoveLocation( udg_Tsunami[3] )
Custom script: call RemoveLocation( udg_Tsunami[4] )
Custom script: call RemoveLocation( udg_Tsunami[5] )


If this is still unclear in any way, please let me know.
 
Status
Not open for further replies.
Top