• 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.

[Trigger] Knockback System

Status
Not open for further replies.
Level 2
Joined
Mar 9, 2013
Messages
11
Ok the first thing you are thinking is about:
Go and and look up Paladon's knockback system, or
Search it up on the forums.

BUT I DID BOTH OF THEM.
First off, when i went to paladons knockback system thread, it said resource unavaliable, i don't know if that just happened to me so i couldn't read it, after searching up "Knockback" on the forums, i looked in some threads and tested their triggers but it still doesn't work for my spell:
My custom spell is Crushing wave but it is based off shockwave to prevent the graphical deformation, and i can't seem to find anything wrong with my trigger:

  • Events:
  • Unit - A unit begins casting an ability
  • Conditions:
  • (Ability being cast) Equal to Crushing Wave
  • Actions:
  • Set Caster = (Casting Unit)
  • Set CasterPosition = (Position of Caster)
  • Set TargetPoint = (Position of (Target unit of ability being cast))
  • Set Distance = (Distance between CasterPosition and TargetPoint)
  • Set Angle = (Angle from CasterPosition to TargetPoint)
  • Set Target = (Target unit of ability being cast)
  • Trigger- Turn on KnockbackINIT
I'm currently stuck on what code i should enter for "KnockbackINIT", i've tried using other people's templates but all it seems to do is pull the target towards me.
 
Last edited:
Don't use Paladon's System.
I repeat : " DONT USE IT"
The reason is because it destroys any destructables, ANY DESTRUCTABLES.
It is considered one of the most unsafe Knockback systems.
http://www.hiveworkshop.com/forums/spells-569/knockback-v1-8-v1-2-a-223634/?prev=status=a&u=Almia
If you want a much better system,try the link i gave to you.
In my system, you just need to fill up the variables and run the system.

About your problem above,i think you don't need to code a knockback init.
 
Level 2
Joined
Mar 9, 2013
Messages
11
Ah Mah Gawd. I think you fried my brains, so, what part should i implement or change to make the knock back ONLY trigger when a certain spell is casted (Just wanted to make sure before i change something and destroy the whole thing?
 
Level 2
Joined
Mar 9, 2013
Messages
11
it doesn't work.... how do i customize it to trigger when a specific spell is cast? The example shows that it works but when i trigger the events to:
Events:
Unit - begins the effect of a ability.
conditions:
Ability being cast equals XXX
 
Level 2
Joined
Mar 9, 2013
Messages
11
Ok heres the map,
Forgive its crappiness because i'm working with my friend and he made me make a knockback for him for 10 bucks. His the project manager and he sucks at all of this, You'll find the trigger tucked away nicely in the messy lines of code my friend has typed in.
Also, when i implement it, the trigger just knockbacks the caster of the ability, i've tried to change the things around but it stil dosen't work.

Enjoy reading a bunch of crap in this map.
 

Attachments

  • Project.w3x
    947.3 KB · Views: 67
Level 2
Joined
Mar 9, 2013
Messages
11
ok thanks, i'll have a look, i couldn't earlier cause it was like depricated resourece or something like that.

EDIT: sorry to say Almia, but paladon's system works for my spell.
 
Status
Not open for further replies.
Top