- Joined
- Apr 20, 2016
- Messages
- 215
Chain ability tutorial
(the easy way)
This means there is no variables needed
What is a chain ability?
A chain ability is a continuous casting of a desired abilityHow to make it
Well all you need are- abilities with base either target or teleport
- knowledge about triggers
how this works?
Well it just an ability casted after an another ability is castedThis tutorial has 2 types
- teleport based
- target based
When you are using teleport based ability that means you are using an ability (ex.blink) to activate this trigger
[trigger=My trigger]Doom Spikes
Events
Unit - A unit Begins casting an ability
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Blink
Then - Actions
Unit - Create 1 (any flying unit) for Player 1 (Red) at (Position of (Casting unit)) facing (Facing of Casting unit) degrees
Unit - Add (any ability you want) to (Last created unit)
Wait 0.90 game-time seconds
Unit - Order (Last created unit) to (matching your ability) (Position of Casting unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to (matched ability)
Then - Actions
Unit - Pause Casting unit[/trigger]
So to clarify your hero will cast an ability equal to blink then it will create a flying unit you picked then it will add the ability you want to the created unit (the ability must be a unit or could just set it to hero ability false and unit ability true) let's just use impale as an example so impale will be added to last created unit then order last created unit to undead crypt lord - impale casting unit.
Now we will make a target based we will use storm bolt
[trigger=My trigger]Doom Spikes
Events
Unit - A unit Begins casting an ability
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Storm bolt
Then - Actions
Unit - Create 1 (any flying unit) for Player 1 (Red) at (Position of (Casting unit)) facing (Facing of Casting unit) degrees
Unit - Add (any ability you want) to (Last created unit)
Wait 0.90 game-time seconds
Unit - Order (Last created unit) to (matching your ability) (Position of Targeted unit of ability being cast)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to (matched ability)
Then - Actions
Unit - Pause Casting unit[/trigger]
Because we are using target based that means the storm bolt will be the marker of the next ability being cast
Now I know that this is a bit complicated because of my bad English that's why I'm going to tell you how this trigger works first your hero will cast the ability then followed by the condition ability being cast is equal to. That's the part of creating and ability casting next the last created unit cast Impale so your next condition is impale and so on. At the then parts just add if then else multiple do this as many as you want But you can change the event depending on your timing. Then if you want to end your trigger then just add inside casting unit that's all.
If you think that this is helpful a "rep+" would really be appreciated....
I promise when I get my new laptop I will edit this to a more understandable tutorial I was making this on my phone and it is a bit laggy that's why it's hard to edit
Last edited: