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

[Trigger] Jump It!

Status
Not open for further replies.
Level 13
Joined
Apr 15, 2008
Messages
854
Hey,

I'm making a custom GUI spell... ~

How to make a unit jump in the air very smooth and land it little bit faster with GUI ?

Cuz I wanna make a spell like warstomp that if you cast it all the units in the range of 600 will jump in the air and land and then get 60 or 100 damage or something.

Rep for the awesome user who helps me!
 
Level 16
Joined
Jul 21, 2008
Messages
1,121
Create dummy unit with impale and implement this trigger:

Trigger creates 10 dummy units that cast ''Impale''. Each dummy faces 36 degrees different that previous.

  • War Stomp Special Effect
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to <Your Ability>
    • Actions
      • Set TempPoint = (Position of (Triggering unit))
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • Unit - Create 1 <Dummy> for (Owner of (Triggering unit)) at TempPoint facing Default building facing degrees
          • Set TempPoint2 = (TempPoint offset by 256.00 towards ((Real((Integer A))) x 36.00) degrees)
          • Unit - Order (Last created unit) to Undead Crypt Lord - Impale TempPoint2
          • Custom script: call RemoveLocation(udg_TempPoint2)
      • Custom script: call RemoveLocation(udg_TempPoint)
It works fine for me.
 
Level 13
Joined
Apr 15, 2008
Messages
854
Create dummy unit with impale and implement this trigger:

  • War Stomp Special Effect
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to <Your Ability>
    • Actions
      • Set TempPoint = (Position of (Triggering unit))
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • Unit - Create 1 <Dummy> for (Owner of (Triggering unit)) at TempPoint facing Default building facing degrees
          • Set TempPoint2 = (TempPoint offset by 256.00 towards ((Real((Integer A))) x 36.00) degrees)
          • Unit - Order (Last created unit) to Undead Crypt Lord - Impale TempPoint2
          • Custom script: call RemoveLocation(udg_TempPoint2)
      • Custom script: call RemoveLocation(udg_TempPoint)
It works fine for me.

Gonna try it thanks!
 
Status
Not open for further replies.
Top