- Joined
- May 11, 2012
- Messages
- 2,103
I hear some people telling me that this triggrr doesn't works for player 2, but i cant find the problem.. Check it and plz tell me whats wrong?
-
Start Timer
-
Events
- Unit - A unit Dies
- Conditions
-
Actions
-
For each (Integer A) from 1 to 8, 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 (Player((Integer A)))
-
Then - Actions
- Set Hero[(Integer A)] = (Triggering unit)
- Player - Add -20000 to (Player((Integer A))) Current gold
- Set PlayerGroup = (Player group((Player((Integer A)))))
- Game - Display to PlayerGroup the text: ((Name of (Player((Integer A)))) + |c00FFD700You lost 20 000 Gold and will respawn after 5 minutes.)
- Custom script: call DestroyForce(udg_PlayerGroup)
- Countdown Timer - Start TimerRespawn[(Integer A)] as a One-shot timer that will expire in 300.00 seconds
- Countdown Timer - Create a timer window for (Last started timer) with title Respawn in:
- Set TimerWindowRespawn = (Last created timer window)
- Countdown Timer - Show TimerWindowRespawn for (Player((Integer A)))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
For each (Integer A) from 1 to 8, do (Actions)
-
Events
-
End Timer Player 1
-
Events
- Time - TimerRespawn[1] expires
- Conditions
-
Actions
- Set Player_RespawnPoint[1] = (Center of Player 1 Respawn Point <gen>)
- Countdown Timer - Hide TimerWindowRespawn
- Countdown Timer - Destroy TimerWindowRespawn
- Wait 1.00 seconds
- Hero - Instantly revive Hero[1] at Player_RespawnPoint[1], Show revival graphics
- Camera - Pan camera for (Owner of Hero[1]) to Player_RespawnPoint[1] over 0.00 seconds
- Selection - Select Hero[1] for Player 1 (Red)
- Custom script: call RemoveLocation(udg_Player_RespawnPoint[1])
-
Events
-
End Timer Player 2
-
Events
- Time - TimerRespawn[2] expires
- Conditions
-
Actions
- Set Player_RespawnPoint[2] = (Center of Player 2 Respawn Point <gen>)
- Countdown Timer - Hide TimerWindowRespawn
- Countdown Timer - Destroy TimerWindowRespawn
- Wait 1.00 seconds
- Hero - Instantly revive Hero[2] at Player_RespawnPoint[2], Show revival graphics
- Camera - Pan camera for (Owner of Hero[2]) to Player_RespawnPoint[2] over 0.00 seconds
- Selection - Select Hero[2] for Player 2 (Blue)
- Custom script: call RemoveLocation(udg_Player_RespawnPoint[2])
-
Events