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!
I need an ability that would target a unit, then the caster would get 522 movement speed and charge into the target. Upon impact, all enemies surrounding the caster would get a debuff that makes them miss attacks.
If you tried to make the ability and it didn't work, please show us the triggers so we can see where did you go wrong. If you wan't someone to make the ability for you, make a request at the request section. If you have no exp at custom spells, see some tutrials on this site.
I created my own charge spell, though it doesn't place the debuff on nearby enemies and is not MUI. But it should be easy enough to add those effects there yourself
Charge Start
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Your_Ability
Actions
-------- set up variables --------
Set Caster = Blademaster 0002 <gen>
Set TargetPoint = (Target point of ability being cast)
"Caster" is a unit variable
"TargetPoint" is point variable
A very important part is the "call SetUnitAnimationByIndex(udg_Caster, 6)" custom script. Through this script I play "walk" animation, so the caster runs when he charges. The number 6 is index number of "walk" animation, however that is for Blademaster unit... walk animation of other units may have different index number. If more than 1 model uses this spell, then you will need an If/Then/Else.
And this other trigger which periodically moves the Caster unit.
Charge Loop
Events
Time - Every 0.02 seconds of game time
Conditions
Actions
Set p1 = (Position of Caster)
-------- Checks distance between TargetPoint and caster's current location p1 --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Distance between TargetPoint and p1) Greater than 10.44
Then - Actions
-------- It is not close enough, so we offset caster a little bit towards TargetPoint --------
Set p2 = (p1 offset by 10.44 towards (Angle from p1 to TargetPoint) degrees)
-------- This moves the caster, it moves Caster through any pathing, so you will "run" up/down cliffs, over deep water, etc. but you will also not be blocked by other units --------
-------- It moves caster by moving him to X and Y coordinates which we set up a few lines above --------
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.