Hi,
So this trigger worked completely fine until today, where it seems to have had a fit and doesn't work properly. Throughout lots of testing I've worked out that if I clean the location leak of "TempPoint2" the trigger no longer works, it looses the "Sprint_Point" somehow which screws up the mana cost. I've taken out the custom script to clean the leak and it works, I'm assuming I'll need to put it back in?? Any ideas?
So this trigger worked completely fine until today, where it seems to have had a fit and doesn't work properly. Throughout lots of testing I've worked out that if I clean the location leak of "TempPoint2" the trigger no longer works, it looses the "Sprint_Point" somehow which screws up the mana cost. I've taken out the custom script to clean the leak and it works, I'm assuming I'll need to put it back in?? Any ideas?
-
Periodic Sprint Check
-
Events
-
Time - Every 0.20 seconds of game time
-
-
Conditions
-
Actions
-
For each (Integer Sprint_LoopIndex) from 1 to Sprint_MaxIndex, do (Actions)
-
Loop - Actions
-
Set TempPoint2 = (Position of Sprint_Unit[Sprint_LoopIndex])
-
Cinematic - Ping minimap for (All players) at Sprint_Point[Sprint_LoopIndex] for 1.00 seconds
-
Set TempReal = (Distance between TempPoint2 and Sprint_Point[Sprint_LoopIndex])
-
Set TempReal = (TempReal / 25.00)
-
Custom script: call RemoveLocation(udg_Sprint_Point[udg_Sprint_LoopIndex])
-
Set Sprint_Point[Sprint_LoopIndex] = TempPoint2
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Sprint_Unit[Sprint_LoopIndex] is alive) Equal to True
-
(Mana of Sprint_Unit[Sprint_LoopIndex]) Greater than or equal to TempReal
-
-
Then - Actions
-
Unit - Set mana of Sprint_Unit[Sprint_LoopIndex] to ((Mana of Sprint_Unit[Sprint_LoopIndex]) - TempReal)
-
-
Else - Actions
-
Unit - Remove Spell Book (Sprint) from Sprint_Unit[Sprint_LoopIndex]
-
Unit - Remove Sprint buff from Sprint_Unit[Sprint_LoopIndex]
-
Unit - Remove Sprint (Immolation) buff from Sprint_Unit[Sprint_LoopIndex]
-
Custom script: call RemoveLocation(udg_Sprint_Point[udg_Sprint_LoopIndex])
-
Set Sprint_Point[Sprint_LoopIndex] = Sprint_Point[Sprint_MaxIndex]
-
Set Sprint_Unit[Sprint_LoopIndex] = Sprint_Unit[Sprint_MaxIndex]
-
Set Sprint_MaxIndex = (Sprint_MaxIndex - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Sprint_MaxIndex Equal to 0
-
-
Then - Actions
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
Set Sprint_LoopIndex = (Sprint_LoopIndex - 1)
-
-
-
-
-
-
-
-