My problem is that everyone except the host gets disconnected from my map, i dont really know what could be wrong but i think its my victory trigger for reached kills.
I know this trigger is shit, i'm not even sure it works. If anyone got an idea how to make it so when team 1 or team 2 reaches 50 herokills then that team wins and the other team loses.
Trigger:
- leaderboard win
- Events
- Unit - A unit Dies
- Conditions
- ((Dying unit) belongs to an ally of Player 5 (Yellow)) Equal to True
- ((Dying unit) belongs to an enemy of Player 1 (Red)) Equal to True
- ((Dying unit) is A Hero) Equal to True
- Actions
- Set player_kills[1] = (player_kills[(Player number of (Owner of (Killing unit)))] + 1)
- Set player_kills[2] = (player_kills[(Player number of (Owner of (Killing unit)))] + 1)
- Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to player_kills[(Player number of (Owner of (Killing unit)))]
- Leaderboard - Sort (Last created leaderboard) by Value in Descending order
- If (player_kills[(Player number of (Owner of (Killing unit)))] Equal to 50) then do (Game - Victory (Owner of (Killing unit)) (Show dialogs, Show scores)) else do (Do nothing)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- player_kills[1] Equal to 25
- Then - Actions
- Game - Victory Player 1 (Red) (Show dialogs, Show scores)
- Game - Victory Player 2 (Blue) (Show dialogs, Show scores)
- Game - Victory Player 3 (Teal) (Show dialogs, Show scores)
- Game - Victory Player 4 (Purple) (Show dialogs, Show scores)
- Game - Defeat Player 5 (Yellow) with the message: Defeat!
- Game - Defeat Player 6 (Orange) with the message: Defeat!
- Game - Defeat Player 7 (Green) with the message: Defeat!
- Game - Defeat Player 8 (Pink) with the message: Defeat!
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- player_kills[2] Equal to 25
- Then - Actions
- Game - Victory Player 5 (Yellow) (Show dialogs, Show scores)
- Game - Victory Player 6 (Orange) (Show dialogs, Show scores)
- Game - Victory Player 7 (Green) (Show dialogs, Show scores)
- Game - Victory Player 8 (Pink) (Show dialogs, Show scores)
- Game - Defeat Player 1 (Red) with the message: Defeat!
- Game - Defeat Player 2 (Blue) with the message: Defeat!
- Game - Defeat Player 3 (Teal) with the message: Defeat!
- Game - Defeat Player 4 (Purple) with the message: Defeat!
- Else - Actions
- If - Conditions
- Events
I know this trigger is shit, i'm not even sure it works. If anyone got an idea how to make it so when team 1 or team 2 reaches 50 herokills then that team wins and the other team loses.