- Joined
- Jan 23, 2008
- Messages
- 384
Hi !
I'm making for every hero dieing a ressurection time that will be displayed only to the player owning the hero that just died ... and here's the problem : the trigger works OK for player 2 blue and for the rest of the players the trigger revives the hero but it doesn't display the count down till revive ...
here's the code :
I'm making for every hero dieing a ressurection time that will be displayed only to the player owning the hero that just died ... and here's the problem : the trigger works OK for player 2 blue and for the rest of the players the trigger revives the hero but it doesn't display the count down till revive ...
here's the code :
-
Reviveing
-
Events
- Unit - A unit Dies
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Owner of (Dying unit)) Equal to Player 2 (Blue)
- (Owner of (Dying unit)) Equal to Player 3 (Teal)
- (Owner of (Dying unit)) Equal to Player 4 (Purple)
- (Owner of (Dying unit)) Equal to Player 5 (Yellow)
- (Owner of (Dying unit)) Equal to Player 6 (Orange)
- (Owner of (Dying unit)) Equal to Player 8 (Pink)
- (Owner of (Dying unit)) Equal to Player 9 (Gray)
- (Owner of (Dying unit)) Equal to Player 10 (Light Blue)
- (Owner of (Dying unit)) Equal to Player 11 (Dark Green)
- (Owner of (Dying unit)) Equal to Player 12 (Brown)
-
Conditions
- ((Dying unit) is A Hero) Equal to True
-
Or - Any (Conditions) are true
-
Actions
- Set Playerz_Numbers[1] = Player 2 (Blue)
- Set Playerz_Numbers[2] = Player 3 (Teal)
- Set Playerz_Numbers[3] = Player 4 (Purple)
- Set Playerz_Numbers[4] = Player 5 (Yellow)
- Set Playerz_Numbers[5] = Player 6 (Orange)
- Set Playerz_Numbers[6] = Player 8 (Pink)
- Set Playerz_Numbers[7] = Player 9 (Gray)
- Set Playerz_Numbers[8] = Player 10 (Light Blue)
- Set Playerz_Numbers[9] = Player 11 (Dark Green)
- Set Playerz_Numbers[10] = Player 12 (Brown)
-
For each (Integer A) from 1 to 10, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Triggering unit)) Equal to Playerz_Numbers[(Integer A)]
-
Then - Actions
- Set Timeing_Revive[(Integer A)] = (1.75 x (5.00 + (Real((Hero level of (Triggering unit))))))
- Countdown Timer - Start ReviveTimers[(Integer A)] as a One-shot timer that will expire in Timeing_Revive[(Integer A)] seconds
- Countdown Timer - Create a timer window for ReviveTimers[(Integer A)] with title Revive :
- Set Window_Timed[(Integer A)] = (Last created timer window)
- Countdown Timer - Hide Window_Timed[(Integer A)]
- Countdown Timer - Show Window_Timed[(Integer A)] for Playerz_Numbers[(Integer A)]
- Wait Timeing_Revive[(Integer A)] seconds
- Hero - Instantly revive (Triggering unit) at ((Triggering player) start location), Show revival graphics
- Camera - Pan camera for (Owner of (Triggering unit)) to (Position of (Triggering unit)) over 2.00 seconds
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Events