• 🏆 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!

Leap - DotA

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
This is Mirana's leap spell from dota. I thought of uploading it because it's a little different from other leap/jump spells uploaded here. It's non-targeted and gives a speed boost.

Here's the code:

  • Setup
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Leap
    • Actions
      • Set Caster = (Triggering unit)
      • Set Angle = (Facing of Caster)
      • Set Horizontal_Distance = ((300.00 + (30.00 x (Real((Level of Unknown (A000) for Caster))))) / 16.00)
      • Set Vertical_Distance = (300.00 / 16.00)
      • Set Caster_FlyingHeight = 0.00
      • Unit - Add Crow Form to Caster
      • Unit - Remove Crow Form from Caster
      • Unit - Pause Caster
      • Custom script: call SetUnitPathing(udg_Caster, false)
      • Countdown Timer - Start Timer as a Repeating timer that will expire in 0.03 seconds
      • Trigger - Turn on Movement <gen>
This is the Movement code:

  • Movement
    • Events
      • Time - Timer expires
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Counter Less than or equal to 8
        • Then - Actions
          • Set Caster_FlyingHeight = ((Current flying height of Caster) + Vertical_Distance)
          • Set Caster_Loc = (Position of Caster)
          • Unit - Move Caster instantly to (Caster_Loc offset by Horizontal_Distance towards Angle degrees)
          • Custom script: call RemoveLocation(udg_Caster_Loc)
          • Animation - Change Caster flying height to Caster_FlyingHeight at (Vertical_Distance / 0.03)
          • Set Counter = (Counter + 1)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Counter Less than or equal to 16
            • Then - Actions
              • Set Caster_FlyingHeight = ((Current flying height of (Triggering unit)) - Vertical_Distance)
              • Set Caster_Loc = (Position of Caster)
              • Unit - Move Caster instantly to (Caster_Loc offset by Horizontal_Distance towards Angle degrees)
              • Animation - Change Caster flying height to Caster_FlyingHeight at (Vertical_Distance / 0.03)
              • Custom script: call RemoveLocation(udg_Caster_Loc)
              • Set Counter = (Counter + 1)
            • Else - Actions
              • Countdown Timer - Pause Timer
              • Unit - Unpause Caster
              • Custom script: call SetUnitPathing(udg_Caster, true)
              • Set Horizontal_Distance = 0.00
              • Set Caster_FlyingHeight = 0.00
              • Set Counter = 1
              • Selection - Add Caster to selection
              • Set Caster_Loc = (Position of Caster)
              • Custom script: call RemoveLocation(udg_Caster_Loc)
              • Trigger - Turn off (This trigger)
Give credit to me for the code and to DotA for the ACTUAL SPELL.
Please use Warcraft 3 version 1.24d for this just incase it doesn't work.

Keywords:
DotA, leap, jump, DotA spells, dota, dota spells, Mirana, Mirana spells, DotA leap, dota leap
Contents

Just another Warcraft III map (Map)

Reviews
12th Dec 2015 IcemanBo: Too long time as NeedsFix. Rejected. 14:21, 16th Jun 2010 TriggerHappy: Not MUI/MPI. And you're globally ignored.

Moderator

M

Moderator

12th Dec 2015
IcemanBo: Too long time as NeedsFix. Rejected.

14:21, 16th Jun 2010
TriggerHappy:

Not MUI/MPI.
And you're globally ignored.
 
Top