- Joined
- Aug 14, 2006
- Messages
- 7,614
Hey,
So I got a little problem: boss' lightnings aren't moving. I think I've run to this problem before years ago but here I am once again. Help me!
Triggers:
Test map attached. Rep for the helpers!
So I got a little problem: boss' lightnings aren't moving. I think I've run to this problem before years ago but here I am once again. Help me!
Triggers:
-
Untitled Trigger 001
-
Events
-
Player - Player 1 (Red) types a chat message containing 1 as An exact match
-
-
Conditions
-
Actions
-
Trigger - Turn off (This trigger)
-
Set Boss_Event = True
-
Unit - Pause EPIC_BOSS
-
Animation - Play EPIC_BOSS's stand channel animation, using only Common animations
-
Wait 1.40 seconds
-
Set TempInteger = 0
-
Set EPIC_DrainC = 0
-
Set TempLoc = (Position of EPIC_BOSS)
-
Set TempGroup = (Units within 600.00 of TempLoc matching ((((Matching unit) is alive) Equal to True) and (((Owner of (Matching unit)) Equal to Player 1 (Red)) and ((Level of Invulnerable (Neutral) for (Matching unit)) Equal to 0))))
-
Unit Group - Pick every unit in TempGroup and do (Actions)
-
Loop - Actions
-
Set EPIC_DrainB[(Integer A)] = True
-
Set TempInteger = (TempInteger + 1)
-
Set EPIC_DrainC = (EPIC_DrainC + 1)
-
Set TempLoc2 = (Position of (Picked unit))
-
Set EPIC_DrainU[TempInteger] = (Picked unit)
-
Lightning - Create a Drain Life lightning effect from source TempLoc to target TempLoc2
-
Set EPIC_DrainL[TempInteger] = (Last created lightning effect)
-
Custom script: call RemoveLocation(udg_TempLoc2)
-
-
-
Custom script: call RemoveLocation(udg_TempLoc)
-
Trigger - Turn on Epic Demon SPELLS Drain MOVE <gen>
-
Trigger - Turn on Epic Demon SPELLS Drain DAMAGE <gen>
-
Wait 10.00 seconds
-
For each (Integer A) from 1 to EPIC_DrainC, do (Actions)
-
Loop - Actions
-
Lightning - Destroy EPIC_DrainL[(Integer A)]
-
-
-
Trigger - Turn off Epic Demon SPELLS Drain DAMAGE <gen>
-
Trigger - Turn off Epic Demon SPELLS Drain MOVE <gen>
-
Animation - Reset EPIC_BOSS's animation
-
Unit - Unpause EPIC_BOSS
-
Set Boss_Event = False
-
Wait 10.00 seconds
-
Trigger - Turn on (This trigger)
-
-
-
Epic Demon SPELLS Drain DAMAGE
-
Events
-
Time - Every 0.50 seconds of game time
-
-
Conditions
-
Actions
-
Set TempLoc = (Position of EPIC_BOSS)
-
For each (Integer A) from 1 to EPIC_DrainC, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
EPIC_DrainB[(Integer A)] Equal to True
-
-
Then - Actions
-
Set TempLoc2 = (Position of EPIC_DrainU[(Integer A)])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Distance between TempLoc and TempLoc2) Greater than 800.00
-
-
Then - Actions
-
Set EPIC_DrainB[(Integer A)] = False
-
-
Else - Actions
-
Set TempReal = 25.00
-
Unit - Set life of EPIC_BOSS to ((Life of EPIC_BOSS) + TempReal)
-
Unit - Set life of EPIC_DrainU[(Integer A)] to ((Life of EPIC_DrainU[(Integer A)]) - TempReal)
-
-
-
Custom script: call RemoveLocation(udg_TempLoc2)
-
-
Else - Actions
-
-
-
-
Custom script: call RemoveLocation(udg_TempLoc)
-
-
-
Epic Demon SPELLS Drain MOVE
-
Events
-
Time - Every 0.05 seconds of game time
-
-
Conditions
-
Actions
-
Set TempLoc = (Position of EPIC_BOSS)
-
For each (Integer A) from 1 to EPIC_DrainC, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
EPIC_DrainB[(Integer A)] Equal to True
-
-
Then - Actions
-
Set TempLoc2 = (Position of EPIC_DrainU[(Integer A)])
-
Lightning - Move EPIC_DrainL[(Integer A)] to source TempLoc and target TempLoc2
-
Custom script: call RemoveLocation(udg_TempLoc2)
-
-
Else - Actions
-
-
-
-
Custom script: call RemoveLocation(udg_TempLoc)
-
-