- Joined
- Apr 13, 2005
- Messages
- 630
I know there is a leak in here somewhere but i cant figure out where. The trigger Revives the hero but it wont do multiple units if more than 1 dies at the same time. then the timer window stays there. its a mess
-
Hero reviving
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


((Triggering unit) is A Hero) Equal to True
-


((Owner of (Dying unit)) slot status) Equal to Is playing
-
-

Actions
-


Set Hero_reviving[1] = (Center of selection spawn <gen>)
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Owner of (Dying unit)) Equal to Player 2 (Blue)
-
-



Then - Actions
-




Game - Display to (All players) the text: ((Name of (Owner of (Dying unit))) + hero has been owned by the attackers. Now he needs to wait to revive.)
-




Countdown Timer - Create a timer window for Herorevive with title ((Name of (Owner of (Dying unit))) + hero revives in.......)
-




Set Revivingwindow = (Last created timer window)
-




Countdown Timer - Start Herorevive as a One-shot timer that will expire in 10.00 seconds
-




Wait 10.00 seconds
-




Countdown Timer - Destroy Revivingwindow
-




Hero - Instantly revive (Dying unit) at Hero_reviving[1], Show revival graphics
-




Game - Display to (Player group((Owner of (Dying unit)))) the text: Try not to die next...
-




Camera - Pan camera for (Owner of (Dying unit)) to Hero_reviving[1] over 0.00 seconds
-




Custom script: call RemoveLocation(udg_Hero_reviving[1])
-




Custom script: call DestroyTimerDialog(udg_Revivingwindow)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Owner of (Dying unit)) Equal to Player 3 (Teal)
-
-



Then - Actions
-




Game - Display to (All players) the text: ((Name of (Owner of (Dying unit))) + hero has been owned by the attackers. Now he needs to wait to revive.)
-




Countdown Timer - Create a timer window for Herorevive with title ((Name of (Owner of (Dying unit))) + hero revives in.......)
-




Set Revivingwindow = (Last created timer window)
-




Countdown Timer - Start Herorevive as a One-shot timer that will expire in 10.00 seconds
-




Wait 10.00 seconds
-




Countdown Timer - Destroy Revivingwindow
-




Hero - Instantly revive (Dying unit) at Hero_reviving[1], Show revival graphics
-




Game - Display to (Player group((Owner of (Dying unit)))) the text: Try not to die next...
-




Camera - Pan camera for (Owner of (Dying unit)) to Hero_reviving[1] over 0.00 seconds
-




Custom script: call RemoveLocation(udg_Hero_reviving[1])
-




Custom script: call DestroyTimerDialog(udg_Revivingwindow)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Owner of (Dying unit)) Equal to Player 4 (Purple)
-
-



Then - Actions
-




Game - Display to (All players) the text: ((Name of (Owner of (Dying unit))) + hero has been owned by the attackers. Now he needs to wait to revive.)
-




Countdown Timer - Create a timer window for Herorevive with title ((Name of (Owner of (Dying unit))) + hero revives in.......)
-




Set Revivingwindow = (Last created timer window)
-




Countdown Timer - Start Herorevive as a One-shot timer that will expire in 10.00 seconds
-




Wait 10.00 seconds
-




Countdown Timer - Destroy Revivingwindow
-




Hero - Instantly revive (Dying unit) at Hero_reviving[1], Show revival graphics
-




Game - Display to (Player group((Owner of (Dying unit)))) the text: Try not to die next...
-




Camera - Pan camera for (Owner of (Dying unit)) to Hero_reviving[1] over 0.00 seconds
-




Custom script: call RemoveLocation(udg_Hero_reviving[1])
-




Custom script: call DestroyTimerDialog(udg_Revivingwindow)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Owner of (Dying unit)) Equal to Player 5 (Yellow)
-
-



Then - Actions
-




Game - Display to (All players) the text: ((Name of (Owner of (Dying unit))) + hero has been owned by the attackers. Now he needs to wait to revive.)
-




Countdown Timer - Create a timer window for Herorevive with title ((Name of (Owner of (Dying unit))) + hero revives in.......)
-




Set Revivingwindow = (Last created timer window)
-




Countdown Timer - Start Herorevive as a One-shot timer that will expire in 10.00 seconds
-




Wait 10.00 seconds
-




Countdown Timer - Destroy Revivingwindow
-




Hero - Instantly revive (Dying unit) at Hero_reviving[1], Show revival graphics
-




Game - Display to (Player group((Owner of (Dying unit)))) the text: Try not to die next...
-




Camera - Pan camera for (Owner of (Dying unit)) to Hero_reviving[1] over 0.00 seconds
-




Custom script: call RemoveLocation(udg_Hero_reviving[1])
-




Custom script: call DestroyTimerDialog(udg_Revivingwindow)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Owner of (Dying unit)) Equal to Player 6 (Orange)
-
-



Then - Actions
-




Game - Display to (All players) the text: ((Name of (Owner of (Dying unit))) + hero has been owned by the attackers. Now he needs to wait to revive.)
-




Countdown Timer - Create a timer window for Herorevive with title ((Name of (Owner of (Dying unit))) + hero revives in.......)
-




Set Revivingwindow = (Last created timer window)
-




Countdown Timer - Start Herorevive as a One-shot timer that will expire in 10.00 seconds
-




Wait 10.00 seconds
-




Countdown Timer - Destroy Revivingwindow
-




Hero - Instantly revive (Dying unit) at Hero_reviving[1], Show revival graphics
-




Game - Display to (Player group((Owner of (Dying unit)))) the text: Try not to die next...
-




Camera - Pan camera for (Owner of (Dying unit)) to Hero_reviving[1] over 0.00 seconds
-




Custom script: call RemoveLocation(udg_Hero_reviving[1])
-




Custom script: call DestroyTimerDialog(udg_Revivingwindow)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Owner of (Dying unit)) Equal to Player 7 (Green)
-
-



Then - Actions
-




Game - Display to (All players) the text: ((Name of (Owner of (Dying unit))) + hero has been owned by the attackers. Now he needs to wait to revive.)
-




Countdown Timer - Create a timer window for Herorevive with title ((Name of (Owner of (Dying unit))) + hero revives in.......)
-




Set Revivingwindow = (Last created timer window)
-




Countdown Timer - Start Herorevive as a One-shot timer that will expire in 10.00 seconds
-




Wait 10.00 seconds
-




Countdown Timer - Destroy Revivingwindow
-




Hero - Instantly revive (Dying unit) at Hero_reviving[1], Show revival graphics
-




Game - Display to (Player group((Owner of (Dying unit)))) the text: Try not to die next...
-




Camera - Pan camera for (Owner of (Dying unit)) to Hero_reviving[1] over 0.00 seconds
-




Custom script: call RemoveLocation(udg_Hero_reviving[1])
-




Custom script: call DestroyTimerDialog(udg_Revivingwindow)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Owner of (Dying unit)) Equal to Player 8 (Pink)
-
-



Then - Actions
-




Game - Display to (All players) the text: ((Name of (Owner of (Dying unit))) + hero has been owned by the attackers. Now he needs to wait to revive.)
-




Countdown Timer - Create a timer window for Herorevive with title ((Name of (Owner of (Dying unit))) + hero revives in.......)
-




Set Revivingwindow = (Last created timer window)
-




Countdown Timer - Start Herorevive as a One-shot timer that will expire in 10.00 seconds
-




Wait 10.00 seconds
-




Countdown Timer - Destroy Revivingwindow
-




Hero - Instantly revive (Dying unit) at Hero_reviving[1], Show revival graphics
-




Game - Display to (Player group((Owner of (Dying unit)))) the text: Try not to die next...
-




Camera - Pan camera for (Owner of (Dying unit)) to Hero_reviving[1] over 0.00 seconds
-




Custom script: call RemoveLocation(udg_Hero_reviving[1])
-




Custom script: call DestroyTimerDialog(udg_Revivingwindow)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Owner of (Dying unit)) Equal to Player 9 (Gray)
-
-



Then - Actions
-




Game - Display to (All players) the text: ((Name of (Owner of (Dying unit))) + hero has been owned by the attackers. Now he needs to wait to revive.)
-




Countdown Timer - Create a timer window for Herorevive with title ((Name of (Owner of (Dying unit))) + hero revives in.......)
-




Set Revivingwindow = (Last created timer window)
-




Countdown Timer - Start Herorevive as a One-shot timer that will expire in 10.00 seconds
-




Wait 10.00 seconds
-




Countdown Timer - Destroy Revivingwindow
-




Hero - Instantly revive (Dying unit) at Hero_reviving[1], Show revival graphics
-




Game - Display to (Player group((Owner of (Dying unit)))) the text: Try not to die next...
-




Camera - Pan camera for (Owner of (Dying unit)) to Hero_reviving[1] over 0.00 seconds
-




Custom script: call RemoveLocation(udg_Hero_reviving[1])
-




Custom script: call DestroyTimerDialog(udg_Revivingwindow)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Owner of (Dying unit)) Equal to Player 10 (Light Blue)
-
-



Then - Actions
-




Game - Display to (All players) the text: ((Name of (Owner of (Dying unit))) + hero has been owned by the attackers. Now he needs to wait to revive.)
-




Countdown Timer - Create a timer window for Herorevive with title ((Name of (Owner of (Dying unit))) + hero revives in.......)
-




Set Revivingwindow = (Last created timer window)
-




Countdown Timer - Start Herorevive as a One-shot timer that will expire in 10.00 seconds
-




Wait 10.00 seconds
-




Countdown Timer - Destroy Revivingwindow
-




Hero - Instantly revive (Dying unit) at Hero_reviving[1], Show revival graphics
-




Game - Display to (Player group((Owner of (Dying unit)))) the text: Try not to die next...
-




Camera - Pan camera for (Owner of (Dying unit)) to Hero_reviving[1] over 0.00 seconds
-




Custom script: call RemoveLocation(udg_Hero_reviving[1])
-




Custom script: call DestroyTimerDialog(udg_Revivingwindow)
-
-



Else - Actions
-




Do nothing
-
-
-
-








