HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How to create this spell

07-29-2004, 04:17 AM#1
Sawse
Im looking to make this trigger/spell. When they use War Stomp it will cast shockwave instead (Im looking to make a Shockwave that will be cast without having to target the ground)
If possible: the JASS code for
When a player presses the down arrow key Chieftan will cast shockwave in direction of the front of Chieftan
07-29-2004, 05:17 AM#2
th15
Code:
EVent:
Unit starts the effect of a spell

Condition:
Ability beign cast = war stomp

Action:
Unit- create 1 ShockwaveCasterDummy at position of casting unit
Order last created unit to Shockwave position of casting unit offset by 100 toward facing angle of casting unit
Apply 1 second life timer to last created unit

This uses a dummy unit to cast the shockwave spell. If you'd rather just give the unit the spell, then just modify the trigger.
07-29-2004, 05:33 AM#3
Sawse
That helps. Thanks a bunch.
07-29-2004, 04:49 PM#4
Sawse
well this did create the spell and it did cast it. However before of the offset it would not shoot in the direction the hero is facing but in the direction of the hero with the offset (what the trigger is telling it do). Is there any way to make it shoot the direction the hero is facing?
07-29-2004, 10:30 PM#5
Milkman
reduce the offset?
07-29-2004, 11:39 PM#6
th15
The trigger I gave you uses the casting unit's facing angle. That HAS to point toward the front. You might try twiddling with the cast range of your shockwave spell or reducing the offset to like, 10.