• 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.

Thunder clap going straight

Status
Not open for further replies.
Level 10
Joined
Mar 31, 2007
Messages
499
Im trying to make a spell which allows thunder clap to move straight and does the ability several times going straight until it reaches its limited length. Problem is, I don't know how to do that, any suggestions?
 
Level 2
Joined
Apr 27, 2004
Messages
28
Events
Unit - A unit Is issued an order targeting a point
Conditions
(Issued order) Equal to (Order(shockwave))
(Unit-type of (Ordered unit)) Equal to [your hero]
Actions
Set Start = (Position of (Ordered unit))
Set Distance = (whatever)
Set End = (Start offset by Dist towards (Angle from Start to (Target point of issued order)) degrees)
Set Angle = (Angle from Start to End)


For each (Integer A) from 1 to [whatever], do (Actions)
Loop - Actions
Set Clap_X = (((X of Start))X offset by ((Real((Integer A))) x Distance) towards Angle degrees)
Set Clap_Y = (((Y of Start))Y offset by ((Real((Integer A))) x Distance) towards Angle degrees)
Set DummyCaster = (Create a unit for (Owner of (Ordered unit)) of type [your dummy caster] at (Clap_X,Clap_Y) facing Angle degrees)
Unit - Add a 0.50 second Generic expiration timer to (Dummy Caster)
Unit - Order (Dummy Caster) to Human Mountain King - Thunder Clap


Point - Remove Start
Point - Remove End

Just one of many possible ways, there may be a better spell to base it on than shockwave that suits your needs, I'm just offering an example. I have not tested it in game, but I believe this will work.

If you dont want the depression deform from shockwave you can trying using healing wards or some such for the base. I would just let the thunder claps deal the damage since thats the effect you want anyway.
 
Level 8
Joined
Sep 13, 2006
Messages
431
Uhhh, even easier way is with impale. Set spell image to thunder clap, damage to x, stun duration to x, and elevation change/air time (something like that) to 0. Creates a number of casting images and stuns + deals damage, which, if I'm not mistaken, is exactly what you are looking for.
 
Level 11
Joined
Jul 12, 2005
Messages
764
Set Clap_X = (((X of Start))X offset by ((Real((Integer A))) x Distance) towards Angle degrees)
Set Clap_Y = (((Y of Start))Y offset by ((Real((Integer A))) x Distance) towards Angle degrees)
Tell me what this is, cause i haven't seen any GUI action like that before... I see that you converted jass functions (as i see PolarProjectionX/Y) to GUI, but that's not GUI :D Interesting! :D

Follow what Dalaran Guard wrote.
 
Level 10
Joined
Mar 31, 2007
Messages
499
Uhhh, even easier way is with impale. Set spell image to thunder clap, damage to x, stun duration to x, and elevation change/air time (something like that) to 0. Creates a number of casting images and stuns + deals damage, which, if I'm not mistaken, is exactly what you are looking for.

Thanks, thats much ezer, Zwan, no idea what you just wrote, but for later uses I copied what you put on this thread to a folder so I can study it, ty for that.
 
Level 2
Joined
Apr 27, 2004
Messages
28
Np man. Just use Dalaran's method until you get some more experience under your belt.

I assumed you wanted to have an actual thunder clap in a line, but if your happy with a sliding clap graphic and none of the terrain deforms then impale works.

@paskovich

my editor has magic sprinkles =)
 
Status
Not open for further replies.
Top