How the spell worked
==================
We need to make the caster 'dash' so we'll be using move unit instantly action
every 0.05 seconds. Then we need to make the unit damage every unit he passes
through right? So I use unit groups to pick all units around the caster and then
damage it.
Then check if there's unit in front of the caster or not, if there is, make the caster have
no collision so it passes right trough the unit.
Then we need to bounce him off destructible and terrains, so after checking if there's a
destructibles, we change the angle to target another enemy. For the terrain, I just checked
the difference between caster current and old position, if there's not much difference, it'll
be counted as hittng terrain.
Lastly, I check if he has travelled enough distance, and if he has, I'll just stop the timer
and destroy all speciall effects, as well as removing leaks. Also check if the target group
is empy, since if it's empty, it means there's no target in range!
===================================
How to Copy Fiery Dash Spell to Other Map
===================================
What does Fiery Dash use
------------------------------------------
- A dummy, non-targeted spell (Fan of Knives is used in this sample map).
- 25 variables (It's all the variable included in this map, other than Spawn Creeps variable).
- 2 triggers, one as the initializer, another as the main engine.
Copying instruction
------------------------------
1. First of all, you need to copy all the variable in this map, except variable SpawnCreep.
2a. Then you can either copy the dummy spell I made in this map (A000:AEfk (Fiery Dash)).
2b. Or you can make your own dummy spell, which must be non targetting, and have no effect (damage, stun, whatever).
3. Copy the 2 triggers in Fiery Dash catagory.
4. Connect the spell, trigger and variables to each other (use this map trigger as reference)
5. Put LegACy / M4Ste12 (I prefer LegACy tho) to your credit list. ^^
Share This Thread