i create it Trigger.
All is fine, but when the player leave in time of Raspawn (When hero is dead and you should wait to control him again).
The hero revive, in normal region, but does not in region for leaver.
When he is playing and leaves, he moves to RegionLeaver.
It is the Trigger, for Revive hero.
-
Leaver 1
-
Events
- Player - Player 1 (Red) leaves the game
-
Conditions
- (Triggering player) Equal to Player 1 (Red)
-
Actions
- Set LeaverGoldAver[1] = ((Player 1 (Red) Current gold) / (PlayerCountL - 1))
- Set LeaverWoodAver[1] = ((Player 1 (Red) Current lumber) / (PlayerCountL - 1))
- Set PlayerCountL = (PlayerCountL - 1)
-
Unit Group - Pick every unit in (Units owned by (Triggering player)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) is A Hero) Equal to True
-
Then - Actions
- Unit - Move (Picked unit) instantly to (Center of LeaverHum <gen>)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions)
-
Loop - Actions
- Player - Make Player 1 (Red) treat (Picked player) as an Ally
-
Loop - Actions
- Player - Make Player 1 (Red) treat Player 6 (Orange) as an Ally
- Game - Display to (All players) the text: ((***** + (Name of (Triggering player))) + ***** |cffdf0000has left game|r, )
- Wait 0.10 game-time seconds
- Trigger - Turn off (This trigger)
-
Events
The hero revive, in normal region, but does not in region for leaver.
When he is playing and leaves, he moves to RegionLeaver.
It is the Trigger, for Revive hero.
-
Revive Hero 1
-
Events
- Unit - A unit Dies
-
Conditions
- ((Triggering unit) is A Hero) Equal to True
- (Owner of (Triggering unit)) Equal to Player 1 (Red)
-
Actions
- Countdown Timer - Create a timer window for DeadHeroMsgTimer[1] with title (Name of Player 1 (Red))
- Countdown Timer - Start DeadHeroMsgTimer[1] as a One-shot timer that will expire in ((Real((Hero level of (Triggering unit)))) x 4.00) seconds
- Set DeadHrMsgTimerWin[1] = (Last created timer window)
- Wait ((Real((Hero level of (Triggering unit)))) x 4.00) seconds
- Countdown Timer - Destroy DeadHrMsgTimerWin[1]
- Hero - Instantly revive (Triggering unit) at (Center of StartPointL <gen>), Show revival graphics
- Camera - Pan camera for (Owner of (Triggering unit)) to (Center of StartPointL <gen>) over 0.50 seconds
-
Events
Last edited by a moderator: