- Joined
- Nov 14, 2012
- Messages
- 43
-
DeathTimerActivate
-
Events
- Unit - A unit Dies
-
Conditions
- ((Dying unit) is A Hero) Equal to True
- (Owner of (Dying unit)) Not equal to Neutral Hostile
-
Actions
- Set DeathMui = (DeathMui + 1)
- Set DeathInteger = (DeathInteger + 1)
- Set DeathON[DeathInteger] = 1
- Set DeathUnit[DeathInteger] = (Dying unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Hero level of DeathUnit[DeathInteger]) Less than or equal to 15
-
Then - Actions
- Set DeathTime[DeathInteger] = 5.00
-
Else - Actions
- Set DeathTime[DeathInteger] = ((Real((Hero level of DeathUnit[DeathInteger]))) / 3.00)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of DeathUnit[DeathInteger]) Equal to Player 1 (Red)
-
Then - Actions
- Set DeathText[DeathInteger] = Player 1 Revive
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of DeathUnit[DeathInteger]) Equal to Player 2 (Blue)
-
Then - Actions
- Set DeathText[DeathInteger] = Player 2 Revive
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of DeathUnit[DeathInteger]) Equal to Player 3 (Teal)
-
Then - Actions
- Set DeathText[DeathInteger] = Player 3 Revive
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of DeathUnit[DeathInteger]) Equal to Player 4 (Purple)
-
Then - Actions
- Set DeathText[DeathInteger] = Player 4 Revive
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of DeathUnit[DeathInteger]) Equal to Player 5 (Yellow)
-
Then - Actions
- Set DeathText[DeathInteger] = Player 5 Revive
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of DeathUnit[DeathInteger]) Equal to Player 6 (Orange)
-
Then - Actions
- Set DeathText[DeathInteger] = Player 6 Revive
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Set DeathTimer[DeathInteger] = (Last started timer)
- Countdown Timer - Create a timer window for DeathTimer[DeathInteger] with title DeathText[DeathInteger]
- Set DeathWindow[DeathInteger] = (Last created timer window)
- Countdown Timer - Change the color of the title for DeathWindow[DeathInteger] to (100.00%, 80.00%, 20.00%) with 0.00% transparency
- Countdown Timer - Start DeathTimer[DeathInteger] as a One-shot timer that will expire in DeathTime[DeathInteger] seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- DeathMui Equal to 1
-
Then - Actions
- Trigger - Turn on DeathTimerLoop <gen>
- Else - Actions
-
If - Conditions
-
Events
-
DeathTimerLoop
-
Events
- Time - Every 0.10 seconds of game time
- Conditions
-
Actions
-
For each (Integer DeathLoop) from 1 to DeathInteger, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Remaining time for DeathTimer[DeathLoop]) Equal to 0.00
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- DeathON[DeathLoop] Equal to 1
-
Then - Actions
- Set DeathON[DeathLoop] = 0
- Set DeathMui = (DeathMui - 1)
- Countdown Timer - Destroy DeathWindow[DeathLoop]
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (DeathUnit[DeathLoop] belongs to an ally of Player 7 (Green)) Equal to True
-
Then - Actions
- Hero - Instantly revive DeathUnit[DeathLoop] at (Center of T1Revive <gen>), Hide revival graphics
- Special Effect - Create a special effect at (Center of T1Revive <gen>) using Abilities\Spells\Items\AIda\AIdaCaster.mdl
- Special Effect - Destroy (Last created special effect)
-
Else - Actions
- Hero - Instantly revive DeathUnit[DeathLoop] at (Center of T2Revive <gen>), Hide revival graphics
- Special Effect - Create a special effect at (Center of T2Revive <gen>) using Abilities\Spells\Items\AIda\AIdaCaster.mdl
- Special Effect - Destroy (Last created special effect)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- DeathMui Equal to 0
-
Then - Actions
- Set DeathInteger = 0
- Trigger - Turn off (This trigger)
- Else - Actions
-
If - Conditions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
For each (Integer DeathLoop) from 1 to DeathInteger, do (Actions)
-
Events
Last edited: