- Joined
- Dec 16, 2017
- Messages
- 418
Hello guys, i am struggling to make this spell work like it should, it's the same as Death Knight spell from wow, Remorseless Winter it's supposed to do damage every 0.50 seconds for 8 times, so it's a duration of 4 seconds, but sometimes it works, sometimes it doesn't, i don't understand..and other problem i have, is that the position from where units are picked, doesn't change after the caster, it stays the same for the whole duration of the spell, so if the caster moves, it will still damage the last position he had in this 0.50 interval or more, instead of moving after him..Also, for the remorseless effect, i used endurance aura and added to the caster, because i can't trigger this buff Remorseless Winter
with a dummy or with an special effect.

-
Remorseless Winter Cast
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Remorseless Winter (Death Knight FROST)
-
-
Actions
-
Set RW_Index = (RW_Index + 1)
-
Set RW_Caster[RW_Index] = (Triggering unit)
-
Set RW_Position[RW_Index] = (Position of RW_Caster[RW_Index])
-
Set RW_Counter[RW_Index] = 0.00
-
Set RW_Damage[RW_Index] = (25.00 + (25.00 x (Real((Level of (Ability being cast) for RW_Caster[RW_Index])))))
-
Unit - Add |r Remorseless Winter Effect to RW_Caster[RW_Index]
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
RW_Index Equal to 1
-
-
Then - Actions
-
Trigger - Turn on Remorseless Winter Loop <gen>
-
-
Else - Actions
-
-
-
-
Remorseless Winter Loop
-
Events
-
Time - Every 0.50 seconds of game time
-
-
Conditions
-
Actions
-
For each (Integer RW_LoopIndex) from 1 to RW_Index, do (Actions)
-
Loop - Actions
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 350.00 of RW_Position[RW_LoopIndex]) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is A structure) Equal to False
-
((Picked unit) is alive) Equal to True
-
((Picked unit) belongs to an enemy of (Owner of RW_Caster[RW_LoopIndex])) Equal to True
-
-
Then - Actions
-
Unit - Cause RW_Caster[RW_LoopIndex] to damage (Picked unit), dealing RW_Damage[RW_LoopIndex] damage of attack type Normal and damage type Cold
-
Special Effect - Create a special effect attached to the chest of (Picked unit) using IceBolt.mdx
-
Set RW_SFX3[RW_LoopIndex] = (Last created special effect)
-
Special Effect - Destroy RW_SFX3[RW_LoopIndex]
-
Set RW_Counter[RW_LoopIndex] = (RW_Counter[RW_LoopIndex] + 1.00)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
RW_Counter[RW_LoopIndex] Greater than or equal to 8.00
-
-
Then - Actions
-
Unit - Remove |r Remorseless Winter Effect from RW_Caster[RW_LoopIndex]
-
Set RW_Caster[RW_LoopIndex] = RW_Caster[RW_Index]
-
Set RW_Position[RW_LoopIndex] = RW_Position[RW_Index]
-
Set RW_Counter[RW_LoopIndex] = RW_Counter[RW_Index]
-
Set RW_Index = (RW_Index - 1)
-
Set RW_LoopIndex = (RW_LoopIndex - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
RW_Index Equal to 0
-
-
Then - Actions
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
-
Else - Actions
-
-
-
Else - Actions
-
-
-
-
-
-
-
Last edited: