- Joined
- Jul 19, 2007
- Messages
- 824
I got problems with this 2 triggers and can't get them to working.
First one is a trigger that revives Heroes, the timer even shows up for my enemies and sometimes they doesn't dissappears when the timer reaches 0, it just creates more and more timers, pls help.
First one is a trigger that revives Heroes, the timer even shows up for my enemies and sometimes they doesn't dissappears when the timer reaches 0, it just creates more and more timers, pls help.
-
Reviving Good Heroes
-
Events
- Unit - A unit Dies
-
Conditions
- ((Triggering unit) is A Hero) Equal to True
- (Owner of (Triggering unit)) Not equal to Player 12 (Brown)
- (Owner of (Triggering unit)) Not equal to Player 6 (Orange)
- (Owner of (Triggering unit)) Not equal to Player 7 (Green)
- (Owner of (Triggering unit)) Not equal to Player 8 (Pink)
- (Owner of (Triggering unit)) Not equal to Player 9 (Gray)
- (Owner of (Triggering unit)) Not equal to Player 11 (Dark Green)
-
Actions
- Set PlayerNumber = (Player number of (Owner of (Triggering unit)))
- Game - Display to (Player group((Owner of (Triggering unit)))) the text: Your Hero will be r...
- Countdown Timer - Start death[PlayerNumber] as a One-shot timer that will expire in 50.00 seconds
- Countdown Timer - Create a timer window for death[PlayerNumber] with title Revived in:
- Set deathtimer[PlayerNumber] = (Last created timer window)
- Countdown Timer - Show deathtimer[PlayerNumber] for Player 1 (Red)
-
Player Group - Pick every player in (All players matching ((Matching player) Not equal to (Player(PlayerNumber)))) and do (Actions)
-
Loop - Actions
- Countdown Timer - Hide deathtimer[PlayerNumber] for (Matching player)
-
Loop - Actions
- Wait 50.00 seconds
- Countdown Timer - Destroy deathtimer[PlayerNumber]
- Hero - Instantly revive (Triggering unit) at GoodHeroSpawn, Show revival graphics
-
For each (Integer IntegerVariable) from 1 to 5, 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(IntegerVariable))
-
Then - Actions
- Camera - Pan camera for (Player(IntegerVariable)) to GoodHeroSpawn over 0.50 seconds
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Events
-
Player Leave the game
-
Events
- Player - Player 1 (Red) leaves the game
- Player - Player 2 (Blue) leaves the game
- Player - Player 3 (Teal) leaves the game
- Player - Player 4 (Purple) leaves the game
- Player - Player 5 (Yellow) leaves the game
- Player - Player 6 (Orange) leaves the game
- Player - Player 7 (Green) leaves the game
- Player - Player 8 (Pink) leaves the game
- Player - Player 9 (Gray) leaves the game
- Player - Player 10 (Light Blue) leaves the game
- Player - Player 11 (Dark Green) leaves the game
- Player - Player 12 (Brown) leaves the game
-
Conditions
- Mb_Player_Index[(Player number of (Triggering player))] Not equal to 0
-
Actions
- Sound - Play H08Captain03 <gen>
- Set TempNr = (Player number of (Triggering player))
- Game - Display to (All players) the text: ((((((|cff + ColorCodes[TempNr]) + (Name of (Triggering player))) + ) + (Proper name of No unit)) + <Empty String>) + |r has left the game.)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- OrderRemoveLeaver Equal to True
-
Then - Actions
- Set a = Mb_Player_Index[TempNr]
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- a Not equal to Mb_Index
-
Then - Actions
- Set Mb_CreepKill[a] = Mb_CreepKill[Mb_Index]
- Set Mb_HeroKill[a] = Mb_HeroKill[Mb_Index]
- Set Mb_TotalKill[a] = Mb_TotalKill[Mb_Index]
- Set Mb_Player[a] = Mb_Player[Mb_Index]
- Set Mb_Player_Index[Mb_Player[a]] = Mb_Player_Index[Mb_Player[Mb_Index]]
- Else - Actions
-
If - Conditions
- Multiboard - Change the number of rows for Multiboard to Mb_Index
- Set Mb_Index = (Mb_Index - 1)
-
Else - Actions
- Set PlayerName[TempNr] = ---> Left <---
- Set c = TempNr
- Set b = Mb_Index
- Set i = Mb_TotalKill[c]
- Set Mb_TotalKill[c] = Mb_TotalKill[b]
- Set Mb_TotalKill[b] = i
- Set i = Mb_HeroKill[c]
- Set Mb_HeroKill[c] = Mb_HeroKill[b]
- Set Mb_HeroKill[b] = i
- Set i = Mb_CreepKill[c]
- Set Mb_CreepKill[c] = Mb_CreepKill[b]
- Set Mb_CreepKill[b] = i
- Set i = Mb_Player[c]
- Set Mb_Player[c] = Mb_Player[b]
- Set Mb_Player[b] = i
- Set Mb_Player_Index[Mb_Player[c]] = c
- Set Mb_Player_Index[Mb_Player[b]] = b
-
If - Conditions
- Player - For (Triggering player), turn Shared units On toward (Player(Mb_Player[1]))
-
Player Group - Pick every player in PlayerGroup and do (Actions)
-
Loop - Actions
- Player - For (Triggering player), turn Shared units On toward (Picked player)
-
Loop - Actions
- Trigger - Run Multiboard update <gen> (ignoring conditions)
-
Events