SkyXyden
New Member
- Reaction score
- 3
Kunai Strike
Description: Tosses 5 kunai in 5 different direction infront of the hero. Dealing damage to those who got struck by the kunai.
Skill used - Shockwave
I think I ruined the code up >.>
I need help to code the skill to make the hero cast 5 shockwave skill at 5
direction.
1st throw being 80 degree on the left
2nd throw being 40 degree on the left
3rd throw being right infront of where the hero targeted
4th throw being 40 degree on the right
5th throw being 80 degree on the right
cast time between each throw is 0.2 sec
Description: Tosses 5 kunai in 5 different direction infront of the hero. Dealing damage to those who got struck by the kunai.
Skill used - Shockwave
I think I ruined the code up >.>
I need help to code the skill to make the hero cast 5 shockwave skill at 5
direction.
1st throw being 80 degree on the left
2nd throw being 40 degree on the left
3rd throw being right infront of where the hero targeted
4th throw being 40 degree on the right
5th throw being 80 degree on the right
cast time between each throw is 0.2 sec
Code:
Kunai Storm
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Kunai Storm (Cast Point)
Actions
Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing (Position of (Triggering unit))
Unit - Add Kunai Toss (Damage Point) to (Last created unit)
Wait 0.20 game-time seconds
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave (Target point of ability being cast)
Wait 0.20 game-time seconds
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave ((Target point of ability being cast) offset by (300.00, 0.00))
Wait 0.20 game-time seconds
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave ((Target point of ability being cast) offset by (-300.00, 0.00))
Wait 0.20 game-time seconds
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave ((Target point of ability being cast) offset by (600.00, 0.00))
Wait 0.20 game-time seconds
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave ((Target point of ability being cast) offset by (-600.00, 0.00))
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)