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

[Trigger] Need help with knockback/mui

Status
Not open for further replies.
Level 6
Joined
Sep 27, 2008
Messages
258
Ok so the this is what i need help with

1.Not doing any form of knockback -idk why i went off of this http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/hashtables-mui-133407/

2.Need to know if it is Mui - i think i should be but idk

  • HighSpeedRush
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to High Speed Rush
    • Actions
      • Set Caster[5] = (Triggering unit)
      • Set integer_variable[2] = (Level of (Ability being cast) for Caster[5])
      • Set CasterLoc = (Position of Caster[5])
      • Set Target[2] = (Target unit of ability being cast)
      • Set TargetPoint = (Position of Target[2])
      • Set KnockbackAngle = (Angle from CasterLoc to (Position of Target[2]))
      • Set KnockbackDistance = (400.00 x 0.04)
      • Set RemainingTime = 2.00
      • Hashtable - Save KnockbackDistance as 0 of (Key (Target item of ability being cast)) in KnockBackTable
      • Hashtable - Save KnockbackAngle as 1 of (Key (Target item of ability being cast)) in KnockBackTable
      • Hashtable - Save RemainingTime as 2 of (Key (Target item of ability being cast)) in KnockBackTable
      • Unit Group - Add Target[2] to KnockbackUnits
      • Unit - Pause Target[2]
      • Unit - Pause Caster[5]
      • Unit - Make Caster[5] Invulnerable
      • Unit - Make Target[2] Invulnerable
      • Special Effect - Create a special effect at (Position of Caster[5]) using Abilities\Spells\NightElf\Taunt\TauntCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Unit - Move Caster[5] instantly to TargetPoint, facing TargetPoint
      • Animation - Play Caster[5]'s attack animation
      • Special Effect - Create a special effect at (Position of Caster[5]) using Abilities\Spells\NightElf\Taunt\TauntCaster.mdl
      • Floating Text - Create floating text that reads 1 at TargetPoint with Z offset 20.00, using font size 20.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
      • Set Combo_FT = (Last created floating text)
      • Special Effect - Destroy (Last created special effect)
      • Wait 0.20 seconds
      • Animation - Play Caster[5]'s attack animation
      • Floating Text - Change text of Combo_FT to 2 using font size 20.00
      • Special Effect - Create a special effect at (Position of Caster[5]) using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Wait 0.20 seconds
      • Animation - Play Caster[5]'s attack animation
      • Special Effect - Create a special effect at (Position of Caster[5]) using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Floating Text - Change text of Combo_FT to 3 using font size 20.00
      • Special Effect - Destroy (Last created special effect)
      • Wait 0.20 seconds
      • Animation - Play Caster[5]'s attack animation
      • Special Effect - Create a special effect at (Position of Caster[5]) using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Floating Text - Change text of Combo_FT to 4 using font size 20.00
      • Special Effect - Destroy (Last created special effect)
      • Wait 0.20 seconds
      • Animation - Play Caster[5]'s attack animation
      • Special Effect - Create a special effect at (Position of Caster[5]) using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Floating Text - Change text of Combo_FT to 5 using font size 20.00
      • Special Effect - Destroy (Last created special effect)
      • Wait 0.20 seconds
      • Animation - Play Caster[5]'s attack animation
      • Special Effect - Create a special effect at (Position of Caster[5]) using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Floating Text - Change text of Combo_FT to 6 using font size 20.00
      • Special Effect - Destroy (Last created special effect)
      • Wait 0.20 seconds
      • Animation - Play Caster[5]'s attack animation
      • Special Effect - Create a special effect at (Position of Caster[5]) using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Floating Text - Change text of Combo_FT to 7 using font size 20.00
      • Special Effect - Destroy (Last created special effect)
      • Wait 0.20 seconds
      • Animation - Play Caster[5]'s attack animation
      • Special Effect - Create a special effect at (Position of Caster[5]) using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Floating Text - Change text of Combo_FT to 8 using font size 20.00
      • Special Effect - Destroy (Last created special effect)
      • Wait 0.20 seconds
      • Animation - Play Caster[5]'s attack animation
      • Special Effect - Create a special effect at (Position of Caster[5]) using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Floating Text - Change text of Combo_FT to 9 using font size 20.00
      • Special Effect - Destroy (Last created special effect)
      • Wait 0.20 seconds
      • Animation - Play Caster[5]'s attack animation
      • Special Effect - Create a special effect at (Position of Caster[5]) using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Floating Text - Change text of Combo_FT to 10 using font size 20.00
      • Special Effect - Destroy (Last created special effect)
      • Wait 0.20 seconds
      • Animation - Play Caster[5]'s attack animation
      • Special Effect - Create a special effect at (Position of Caster[5]) using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Floating Text - Change text of Combo_FT to 11 using font size 20.00
      • Special Effect - Destroy (Last created special effect)
      • Wait 0.20 seconds
      • Animation - Play Caster[5]'s attack animation
      • Special Effect - Create a special effect at (Position of Caster[5]) using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Floating Text - Change text of Combo_FT to 12 using font size 20.00
      • Special Effect - Destroy (Last created special effect)
      • Wait 0.20 seconds
      • Animation - Play Caster[5]'s attack animation
      • Special Effect - Create a special effect at (Position of Caster[5]) using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Floating Text - Change text of Combo_FT to 13 using font size 20.00
      • Special Effect - Destroy (Last created special effect)
      • Wait 0.20 seconds
      • Animation - Play Caster[5]'s attack animation
      • Special Effect - Create a special effect at (Position of Caster[5]) using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Floating Text - Change text of Combo_FT to 14 using font size 20.00
      • Special Effect - Destroy (Last created special effect)
      • Wait 0.20 seconds
      • Animation - Play Caster[5]'s attack animation
      • Special Effect - Create a special effect at (Position of Caster[5]) using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Floating Text - Change text of Combo_FT to 15 using font size 20.00
      • Special Effect - Destroy (Last created special effect)
      • Wait 0.20 seconds
      • Animation - Play Caster[5]'s attack animation
      • Special Effect - Create a special effect at (Position of Caster[5]) using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Floating Text - Change text of Combo_FT to 16 using font size 20.00
      • Special Effect - Destroy (Last created special effect)
      • Wait 0.20 seconds
      • Animation - Play Caster[5]'s attack animation
      • Special Effect - Create a special effect at (Position of Caster[5]) using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Floating Text - Change text of Combo_FT to 17 using font size 20.00
      • Special Effect - Destroy (Last created special effect)
      • Wait 0.20 seconds
      • Animation - Play Caster[5]'s attack animation
      • Special Effect - Create a special effect at (Position of Caster[5]) using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Floating Text - Change text of Combo_FT to 18 using font size 20.00
      • Special Effect - Destroy (Last created special effect)
      • Wait 0.20 seconds
      • Animation - Play Caster[5]'s attack animation
      • Special Effect - Create a special effect at (Position of Caster[5]) using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Floating Text - Change text of Combo_FT to 19 using font size 20.00
      • Special Effect - Destroy (Last created special effect)
      • Wait 0.20 seconds
      • Animation - Play Caster[5]'s attack animation
      • Special Effect - Create a special effect at (Position of Caster[5]) using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Floating Text - Change text of Combo_FT to 20 using font size 20.00
      • Special Effect - Destroy (Last created special effect)
      • Unit - Make Caster[5] Vulnerable
      • Unit - Make Target[2] Vulnerable
      • Unit - Unpause Caster[5]
      • Unit - Unpause Target[2]
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • integer_variable[2] Greater than 0
        • Then - Actions
          • Unit - Cause Caster[5] to damage Target[2], dealing ((Real(integer_variable[2])) x 200.00) damage of attack type Spells and damage type Normal
        • Else - Actions
      • Floating Text - Destroy Combo_FT
      • Custom script: call DestroyTextTag( udg_Combo_FT )
      • Custom script: call RemoveLocation (udg_TargetPoint)
  • HSRknockbackUnits
    • Events
      • Time - Every 0.04 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in KnockbackUnits and do (Actions)
        • Loop - Actions
          • Set KnockbackDistance = (Load 0 of (Key (Picked unit)) from KnockBackTable)
          • Set KnockbackAngle = (Load 1 of (Key (Picked unit)) from KnockBackTable)
          • Set RemainingTime = (Load 2 of (Key (Picked unit)) from KnockBackTable)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • RemainingTime Greater than 0.00
            • Then - Actions
              • Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by KnockbackDistance towards KnockbackAngle degrees)
              • Hashtable - Save (RemainingTime - 0.04) as 2 of (Key (Picked unit)) in KnockBackTable
            • Else - Actions
              • Hashtable - Clear all child hashtables of child (Key (Picked unit)) in KnockBackTable
              • Unit Group - Remove (Picked unit) from KnockbackUnits
 
Status
Not open for further replies.
Top