I decided to make a multiboard for my new map and I have never made one before.
That's why I need someone more experienced to look through the trigger. It's a 6v6 hero arena and the 4 extra rows are "team 1", "team 2" and a total kills field for both teams.
Here's the trigger:
That's why I need someone more experienced to look through the trigger. It's a 6v6 hero arena and the 4 extra rows are "team 1", "team 2" and a total kills field for both teams.
Here's the trigger:
Trigger:
- Multiboard
- Events
- Unit - A unit enters (Playable map area)
- Conditions
- Actions
- Set Number_of_players = (Number of players in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) controller) Equal to User))))
- Set Players_team_1 = (Number of players in (All players matching ((((Matching player) slot status) Equal to Is playing) and ((((Matching player) controller) Equal to User) and ((Team number of (Matching player)) Equal to 2)))))
- Multiboard - Create a multiboard with 4 columns and (Number_of_players + 4) rows, titled Info
- Multiboard - Set the display style for (Last created multiboard) item in column 0, row 0 to Show text and Hide icons
- Multiboard - Set the width for (Last created multiboard) item in column 1, row 0 to 5.00% of the total screen width
- Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Team 1
- Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to Level
- Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to Kills
- Multiboard - Set the text for (Last created multiboard) item in column 4, row 1 to Deaths
- Player Group - Pick every player in (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing))) and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Picked player) is in (All allies of Player 1 (Red))) Equal to True
- Then - Actions
- Multiboard - Set the text for (Last created multiboard) item in column 1, row ((Player number of (Picked player)) + 1) to (Name of (Picked player))
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Picked player) is in (All allies of Player 7 (Green))) Equal to True
- Then - Actions
- Multiboard - Set the text for (Last created multiboard) item in column 1, row (Players_team_1 + ((Player number of (Picked player)) - 3)) to (Name of (Picked player))
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Multiboard - Set the text for (Last created multiboard) item in column 1, row (Players_team_1 + 3) to Team 2
- Player Group - Pick every player in (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing))) and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Picked player) is in (All allies of Player 1 (Red))) Equal to True
- Then - Actions
- Multiboard - Set the text for (Last created multiboard) item in column 2, row ((Player number of (Picked player)) + 1) to (String((Hero level of (Random unit from (Units owned by (Picked player) matching (((Matching unit) is A Hero) Equal to True))))))
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Picked player) is in (All allies of Player 7 (Green))) Equal to True
- Then - Actions
- Multiboard - Set the text for (Last created multiboard) item in column 2, row (Players_team_1 + ((Player number of (Picked player)) - 3)) to (String((Hero level of (Random unit from (Units owned by (Picked player) matching (((Matching unit) is A Hero) Equal to True))))))
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (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 players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing))) and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Picked player) is in (All allies of Player 1 (Red))) Equal to True
- Then - Actions
- Multiboard - Set the text for (Last created multiboard) item in column 3, row ((Player number of (Picked player)) + 1) to (String(Kills[(Player number of (Picked player))]))
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Picked player) is in (All allies of Player 7 (Green))) Equal to True
- Then - Actions
- Multiboard - Set the text for (Last created multiboard) item in column 1, row (Players_team_1 + ((Player number of (Picked player)) - 3)) to (String(Kills[(Player number of (Picked player))]))
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (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 players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing))) and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Picked player) is in (All allies of Player 1 (Red))) Equal to True
- Then - Actions
- Multiboard - Set the text for (Last created multiboard) item in column 4, row ((Player number of (Picked player)) + 1) to (String(Deaths[(Player number of (Picked player))]))
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Picked player) is in (All allies of Player 7 (Green))) Equal to True
- Then - Actions
- Multiboard - Set the text for (Last created multiboard) item in column 4, row (Players_team_1 + ((Player number of (Picked player)) - 3)) to (String(Deaths[(Player number of (Picked player))]))
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Multiboard - Show (Last created multiboard)
- Multiboard - Maximize (Last created multiboard)
- Events