• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Knockback Spell

Status
Not open for further replies.
I would suggest contacting with the owner of the unit, (jeez too much wc3 >.>) *of the thread to see how he made it or with the guy that posted the answer, for further explanation. Unless you prefer waiting for a post here.

{EDIT}
What didn't you understand? Loc stands for Location (=Point), Real stands for itself (Real Number), Integer also stands for itself (Integer Number) and Effect stands for Special Effect.
 
See before annoying us with stupid questions you should read AT LEAST!!!

2 Tutorials!

1. Basic tutorial concerning basic triggering: Here
2. Basic tutorial concerning variables: Here

And THEN you can search for a knockback system and if you don't understand it ask us.

Btw: Why is your titel "epic map maker"?
 
See before annoying us with stupid questions you should read AT LEAST!!!

2 Tutorials!

1. Basic tutorial concerning basic triggering: Here
2. Basic tutorial concerning variables: Here

And THEN you can search for a knockback system and if you don't understand it ask us.

Btw: Why is your titel "epic map maker"?

Jeez chill mate, why do you think it is? ( The title)
Oh and thx Vergil rep+
I wanted to be sure of them since I screwed it first time I tried...
Btw: I think most people appreciate constructive comments in their threads so if you don't have any please, don't post negative comments, keep 'em for yourself.
 
  • Chill Nova
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Chill Nova
    • Actions
      • Unit Group - Pick every unit in (Units within (200.00 + (((Real((Level of Chill Nova for (Casting unit)))) - 1.00) x 12.50)) 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
              • (Y of (Position of (Picked unit))) Greater than (Y of (Position of (Casting unit)))
              • (X of (Position of (Picked unit))) Greater than (X of (Position of (Casting unit)))
            • Then - Actions
              • Set Chill_Nova_Unit_Degrees = (Atan(((Abs(((Y of (Position of (Picked unit))) - (Y of (Position of (Casting unit)))))) / (Abs(((X of (Position of (Picked unit))) - (X of (Position of (Casting unit)))))))))
              • Unit - Move (Picked unit) instantly to ((Position of (Casting unit)) offset by (400.00 + (((Real((Level of Chill Nova for (Casting unit)))) - 1.00) x 25.00)) towards Chill_Nova_Unit_Degrees degrees)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Y of (Position of (Picked unit))) Greater than (Y of (Position of (Casting unit)))
              • (X of (Position of (Picked unit))) Less than (X of (Position of (Casting unit)))
            • Then - Actions
              • Set Chill_Nova_Unit_Degrees = (Abs(((Atan(((Abs(((Y of (Position of (Picked unit))) - (Y of (Position of (Casting unit)))))) / (Abs(((X of (Position of (Picked unit))) - (X of (Position of (Casting unit))))))))) - 180.00)))
              • Unit - Move (Picked unit) instantly to ((Position of (Casting unit)) offset by (400.00 + (((Real((Level of Chill Nova for (Casting unit)))) - 1.00) x 25.00)) towards Chill_Nova_Unit_Degrees degrees)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Y of (Position of (Picked unit))) Less than (Y of (Position of (Casting unit)))
              • (X of (Position of (Picked unit))) Less than (X of (Position of (Casting unit)))
            • Then - Actions
              • Set Chill_Nova_Unit_Degrees = ((Atan(((Abs(((Y of (Position of (Picked unit))) - (Y of (Position of (Casting unit)))))) / (Abs(((X of (Position of (Picked unit))) - (X of (Position of (Casting unit))))))))) + 180.00)
              • Unit - Move (Picked unit) instantly to ((Position of (Casting unit)) offset by (400.00 + (((Real((Level of Chill Nova for (Casting unit)))) - 1.00) x 25.00)) towards Chill_Nova_Unit_Degrees degrees)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Y of (Position of (Picked unit))) Less than (Y of (Position of (Casting unit)))
              • (X of (Position of (Picked unit))) Greater than (X of (Position of (Casting unit)))
            • Then - Actions
              • Set Chill_Nova_Unit_Degrees = (Abs(((Atan(((Abs(((Y of (Position of (Picked unit))) - (Y of (Position of (Casting unit)))))) / (Abs(((X of (Position of (Picked unit))) - (X of (Position of (Casting unit))))))))) - 360.00)))
              • Unit - Move (Picked unit) instantly to ((Position of (Casting unit)) offset by (400.00 + (((Real((Level of Chill Nova for (Casting unit)))) - 1.00) x 25.00)) towards Chill_Nova_Unit_Degrees degrees)
            • Else - Actions
That is a not so simple way around using a knockback trigger. If you want me to explain the variables presented and the rest of that crude mess just respond here again :)
 
I recommend using Paladon's GUI Knockback System (https://www.hiveworkshop.com/forums...7719/?prev=search=gui%20knockback&d=list&r=20)

I've used it extensively in my own map (see signature link) and it works very well, is smooth and professional. It's also nicely documented and easy to add to your own map, free of leaks and MUI (Multi-Unit Instanceable - in other words, lots of different knockbacks can happen at once and they'll all work fine).

Just download that file and read the triggers in the map. It's all very easily explained and simple to implement.
 
Status
Not open for further replies.
Back
Top