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

[GUI][Hashtables] Psychic Push/Drag

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
Push
I gonna add the Drag later!
Push Initation
  • PushInit
    • Events
      • Unit - A unit starts the effect of ability
    • Conditions
      • (Ability being cast) Gleich Psychic Push
    • Actions
      • -------- Detect all Units in an AoE of 400 --------
      • Unit Group - Pick every unit in (Units within 400.00 of (Position of (Casting unit))) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Conditions
              • ((Picked unit) belongs to an enemy of (Owner of (Casting unit))) equal to True
            • 'THEN'-Actions
              • -------- Set the Variables and store them --------
              • Set TestAngle = (Angle from (Position of (Casting unit)) to (Position of (Picked unit)))
              • Set TestDistance = (300.00 x 0.04)
              • Set TestTime = 1.00
              • Hashtable - Save TestAngle as 0 of (Key (Picked unit)) in TestHash
              • Hashtable - Save TestDistance as 1 of (Key (Picked unit)) in TestHash
              • Hashtable - Save TestTime as 2 of (Key (Picked unit)) in TestHash
              • Unit Group - Add (Picked unit) to TestGroup
            • 'ELSE'-Actions
Push Move
  • PushMove
    • Events
      • Time - Every 0.04 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in TestGroup and do (Actions)
        • Loop - Actions
          • -------- Load all the stored handles --------
          • Set TestAngle = (Load 0 of (Key (Picked unit)) from TestHash)
          • Set TestDistance = (Load 1 of (Key (Picked unit)) from TestHash)
          • Set TestTime = (Load 2 of (Key (Picked unit)) from TestHash)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Conditions
              • TestTime bigger than 0.00
            • 'THEN'-Actions
              • -------- Special Effects and the Push and set time to a new value --------
              • Specialeffect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Items\AIob\AIobSpecialArt.mdl
              • Únit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by TestDistance towards TestAngle degrees)
              • Hashtable - Save (TestTime - 0.04) as 2 of (Key (Picked unit)) in TestHash
            • 'ELSE'-Actions
              • -------- Clear all leaks and remove units from group --------
              • Hashtable - Clear all child hashtables of child (Key (Picked unit)) in TestHash
              • Unit Group - Remove (Picked unit) from TestGroup
---------------
Hi, this is my first spell that i put here in the Hive.
This here shows you the way to make a MUI AoE Drag/Push with Hashtables
If you dont know what Hashtables are watch this
http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/hashtables-mui-133407/

Keywords:
lol, fire, ice, lighting, pew pew, wtf, shoop, da, whoop, poop, sex, idiot, psychic, psycho, drag, push
Contents

Noch eine WARCRAFT-III-Karte (Map)

Reviews
17:38, 17th May 2010 The_Reborn_Devil: I would advise you to look here before you make another spell. Why? Because there are tons of leaks in your spells. Also, they are too simple and you must have an in-game screenshot. You should also have...

Moderator

M

Moderator

17:38, 17th May 2010
The_Reborn_Devil:

I would advise you to look here before you make another spell. Why? Because there are tons of leaks in your spells. Also, they are too simple and you must have an in-game screenshot. You should also have considered looking at the Rules before you uploaded.


Status: Rejected
Rating: N/A
 
Top