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

Knockback MUI

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
This Is a simple knockback spell. After All this is my first MUI Spell using indexing.
here are the triggers :
The Main Trigger:
  • Knockback
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to KnockBack
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • integer[0] Equal to 0
        • Then - Actions
          • Trigger - Turn on Loop <gen>
        • Else - Actions
      • Set integer[0] = (integer[0] + 1)
      • Set integer[1] = (integer[1] + 1)
      • Set Caster[integer[1]] = (Casting unit)
      • Set Target[integer[1]] = (Target unit of ability being cast)
      • Set Point[integer[1]] = (Position of Caster[integer[1]])
      • Set Duration[integer[1]] = ((Level of KnockBack for Caster[integer[1]]) x 15)
The Loop Trigger :
  • Loop
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • For each (Integer integer[2]) from 1 to integer[1], do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Duration[integer[2]] Greater than 0
            • Then - Actions
              • Special Effect - Create a special effect at (Position of Target[integer[2]]) using Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
              • Special Effect - Destroy (Last created special effect)
              • Unit - Move Target[integer[2]] instantly to ((Position of Target[integer[2]]) offset by (Real(Duration[integer[2]])) towards (Angle from Point[integer[2]] to (Position of Target[integer[2]])) degrees)
              • Set Duration[integer[2]] = (Duration[integer[2]] - 1)
            • Else - Actions
              • Set integer[0] = (integer[0] - 1)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • integer[0] Equal to 0
                • Then - Actions
                  • Set integer[0] = 0
                  • Set integer[1] = 0
                  • Trigger - Turn off (This trigger)
                • Else - Actions




Keywords:
MUI, jms, Knockback
Contents

Knockback (Map)

Reviews
11:47, 21st Dec 2009 TriggerHappy: Review for Spell This knocback depreciates this one. I may approve this one if you add more features, like detecting when the unit is in water and creating a splash effect instead of dust. You...

Moderator

M

Moderator

11:47, 21st Dec 2009
TriggerHappy:

Review for Spell

This knocback depreciates this one.

I may approve this one if you add more features, like detecting
when the unit is in water and creating a splash effect instead of dust.

You should also make the effect configurable.. create a init trigger
that just has variables for you to set.

You are also leaking quite a bit.

Status

Feel free to message me here if you have any issues with
my review or if you have updated your resource and want it reviewed again.

Rejected
 
Level 7
Joined
May 3, 2008
Messages
202
  • Unit - Move Target[integer[2]] instantly to ((Position of Target[integer[2]]) offset by (Real(Duration[integer[2]])) towards (Angle from Point[integer[2]] to (Position of Target[integer[2]])) degrees)
((Position of Target[integer[2]]) leak @__@..

Example_Location = Position of Target[integer[2]

  • Unit - Move Target[integer[2]] instantly to (Example_Location) offset by (Real(Duration[integer[2]])) towards (Angle from Point[integer[2]] to (Example_Location) degrees)
  • Special Effect - Create a special effect at (Position of Target[integer[2]]) using Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
Leaks.Create a point/location which is Position of Target[Integer[2]])
  • Special Effect - Create a special effect at (Example_location) using Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
And then a Custom script thats removes the Example_Location
  • call RemoveLocation( udg_Example_Location )
:wink:
 
Top