AceHart
Your Friendly Neighborhood Admin
- Reaction score
- 1,495
Um... "channel" spells should stop when the caster dies...
Wheel cast
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Wheel of suffering
Actions
Set WheelCaster = (Triggering unit)
Set WheelPoint[1] = (Target point of ability being cast)
Set WheelDamage = (((Real((Level of Wheel of suffering for WheelCaster))) + 1.00) x 0.80)
Set WheelSpin = 0.00
For each (Integer A) from 1 to 22, do (Actions)
Loop - Actions
Set WheelCirclePoint[(Integer A)] = (WheelPoint[1] offset by 255.00 towards (((Real((Integer A))) - 1.00) x 18.00) degrees)
Wait 0.00 seconds
For each (Integer A) from 1 to 20, do (Actions)
Loop - Actions
Lightning - Create a Mana Burn lightning effect from source WheelCirclePoint[(Integer A)] to target WheelCirclePoint[((Integer A) + 2)]
Set WheelLightning[((Integer A) + 5)] = (Last created lightning effect)
Lightning - Change color of WheelLightning[((Integer A) + 5)] to (0.10 0.10 0.30) with 1.00 alpha
Trigger - Turn on Wheel move and damage <gen>
For each (Integer A) from 1 to 22, do (Actions)
Loop - Actions
Custom script: call RemoveLocation (udg_WheelCirclePoint[GetForLoopIndexA()])
Wheel move and damage
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Set WheelSpin = (WheelSpin + 1.60)
For each (Integer A) from 1 to 5, do (Actions)
Loop - Actions
Lightning - Destroy WheelLightning[(Integer A)]
Set WheelSpokesPoints[(Integer A)] = (WheelPoint[1] offset by 255.00 towards ((72.00 x (Real((Integer A)))) + WheelSpin) degrees)
Lightning - Create a Mana Burn lightning effect from source WheelSpokesPoints[(Integer A)] to target WheelPoint[1]
Set WheelLightning[(Integer A)] = (Last created lightning effect)
Lightning - Change color of WheelLightning[(Integer A)] to (0.30 0.10 1.00) with 1.00 alpha
Set WheelAngles[(Integer A)] = (((Integer((Angle from WheelPoint[1] to WheelSpokesPoints[(Integer A)]))) + 180) / 20)
Set WheelVictims = (Units within 260.00 of WheelPoint[1] matching ((((Matching unit) belongs to an enemy of (Owner of WheelCaster)) Equal to True) and ((((Matching unit) is A structure) Not equal to True) and (((Matching unit) is alive) Equal to True))))
Unit Group - Pick every unit in WheelVictims and do (Actions)
Loop - Actions
Set WheelPoint[2] = (Position of (Picked unit))
Set WheelAngles[6] = (((Integer((Angle from WheelPoint[1] to WheelPoint[2]))) + 180) / 20)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Distance between WheelPoint[2] and WheelPoint[1]) Greater than or equal to 210.00
Then - Actions
Set WheelPoint[3] = (WheelPoint[2] offset by 5.50 towards (Angle from WheelPoint[2] to WheelPoint[1]) degrees)
Unit - Turn collision for (Picked unit) Off
Unit - Move (Picked unit) instantly to WheelPoint[3]
Unit - Turn collision for (Picked unit) On
Custom script: call RemoveLocation (udg_WheelPoint[3])
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Distance between WheelPoint[1] and WheelPoint[2]) Less than or equal to 255.00
Or - Any (Conditions) are true
Conditions
WheelAngles[6] Equal to WheelAngles[1]
WheelAngles[6] Equal to WheelAngles[2]
WheelAngles[6] Equal to WheelAngles[3]
WheelAngles[6] Equal to WheelAngles[4]
WheelAngles[6] Equal to WheelAngles[5]
Then - Actions
Unit - Cause WheelCaster to damage (Picked unit), dealing WheelDamage damage of attack type Spells and damage type Normal
Animation - Change (Picked unit)'s vertex coloring to (90.00%, 35.00%, 75.00%) with 0.00% transparency
Else - Actions
Animation - Change (Picked unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
Custom script: call RemoveLocation (udg_WheelPoint[2])
Custom script: call DestroyGroup(udg_WheelVictims)
For each (Integer A) from 1 to 5, do (Actions)
Loop - Actions
Custom script: call RemoveLocation (udg_WheelSpokesPoints[GetForLoopIndexA()])
Wheel stop
Events
Unit - A unit Stops casting an ability
Conditions
(Ability being cast) Equal to Wheel of suffering
Actions
Trigger - Turn off Wheel move and damage <gen>
For each (Integer A) from 1 to 25, do (Actions)
Loop - Actions
Lightning - Destroy WheelLightning[(Integer A)]
Set WheelVictims = (Units within 265.00 of WheelPoint[1])
Unit Group - Pick every unit in WheelVictims and do (Actions)
Loop - Actions
Animation - Change (Picked unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
Custom script: call DestroyGroup(udg_WheelVictims)
Custom script: call RemoveLocation (udg_WheelPoint[1])
Okay, so like lets say I base my spell of Windwalk, yet using triggers pause the unit for X seconds, and with another trigger make it so if the unit is attacked it unpauses it and removes the Windwalk (still figuring out how to do that :\)
That's good right