I have two scripts that are based off the same ability. One was from a tutorial the other was mine.
This is the one from the tutorial it is on hit when holding item.
This one is when I use an ability. I based it on divine shield. It only shows one skill instead of one in each direction like the first script.
This is the one from the tutorial it is on hit when holding item.
-
Fire Circle
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
((Attacking unit) has an item of type Fire Amulet) Equal to True
-
-
Actions
-
Set Chance_Fire_Circle = (Random integer number between 1 and 5)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Chance_Fire_Circle Equal to 2
-
-
Then - Actions
-
Set Distance = (Facing of (Attacking unit))
-
For each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
-
Set Distance = (Distance + 30.00)
-
Unit - Create 1 Dummy Alpha for (Owner of (Attacking unit)) at (Position of (Attacking unit)) facing Distance degrees
-
Unit - Add Fire Circle to (Last created unit)
-
Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm ((Position of (Last created unit)) offset by 256.00 towards Distance degrees)
-
Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
-
-
-
-
Else - Actions
-
-
-
This one is when I use an ability. I based it on divine shield. It only shows one skill instead of one in each direction like the first script.
-
Blood Nova
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Blood Nova
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Then - Actions
-
Set Distance = (Facing of (Casting unit))
-
For each (Integer B) from 1 to 12, do (Actions)
-
Loop - Actions
-
Set Distance = (Distance + 30.00)
-
Unit - Create 1 Dummy Alpha for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Distance degrees
-
Unit - Add Blood Circle to (Last created unit)
-
Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm ((Position of (Last created unit)) offset by 256.00 towards Distance degrees)
-
Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
-
-
-
-
Else - Actions
-
-
-