i want to make a multiboard so
I copy/pasted the dota multiboard trigger from dota template, changed it a little
when i test my map the multiboard doesnt appear
EDIT: ok i fixed that, now the names on the multiboard dont appear -_-
Here's my trigger and map if you need to look at it
I copy/pasted the dota multiboard trigger from dota template, changed it a little
when i test my map the multiboard doesnt appear
EDIT: ok i fixed that, now the names on the multiboard dont appear -_-
Here's my trigger and map if you need to look at it
-
Setup Players
- Events
- Conditions
-
Actions
- -------- All players --------
- Set Players = (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing)))
- Set LastHeroStanding = (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing)))
- Set PlayersCount = (Number of players in Players)
- -------- Trollz --------
- Set PlayersTrollz = (All allies of Player 1 (Red))
- Set PlayersTrollzCount = (Number of players in PlayersTrollz)
- Set PlayersTrollzReverse = (All allies of Player 1 (Red))
- Set PlayersTrollzPlaying = (All allies of Player 1 (Red))
- -------- Elves --------
- Set PlayersElves = (All allies of Player 7 (Green))
- Set PlayersElvesCount = (Number of players in PlayersElves)
- Set PlayersElvesReverse = (All allies of Player 7 (Green))
- Set PlayersElvesPlaying = (All allies of Player 7 (Green))
-
Multiboard Setup
-
Events
- Time - Elapsed game time is 16.00 seconds
- Conditions
-
Actions
- Countdown Timer - Start Game_Time as a One-shot timer that will expire in 999999.00 seconds
- Leaderboard - Create a leaderboard for PlayersTroll titled Trollz
- Set LeaderboardTrollz = (Last created leaderboard)
- Leaderboard - Hide LeaderboardTrollz
- Leaderboard - Create a leaderboard for PlayersElf titled Elves
- Set LeaderboardElves = (Last created leaderboard)
- Leaderboard - Hide LeaderboardElves
-
Player Group - Pick every player in PlayersTroll and do (Actions)
-
Loop - Actions
- Leaderboard - Add (Picked player) to LeaderboardTrollz with label (Name of (Picked player)) and value 0
-
Loop - Actions
-
Player Group - Pick every player in PlayersElf and do (Actions)
-
Loop - Actions
- Leaderboard - Add (Picked player) to LeaderboardElves with label (Name of (Picked player)) and value 0
-
Loop - Actions
- Trigger - Run Create Multiboard <gen> (ignoring conditions)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Multiboard_ShowDeaths Equal to True
-
Then - Actions
- Trigger - Turn on Tally Deaths <gen>
- Else - Actions
-
If - Conditions
-
Events
-
Create Multiboard
- Events
- Conditions
-
Actions
- Multiboard - Create a multiboard with 4 columns and (6 + PlayersCount) rows, titled Forest Wars
- Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Player
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Multiboard_ShowDeaths Equal to True
-
Then - Actions
- Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to Dead
- Else - Actions
-
If - Conditions
- 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
- -------- Now set the fields for the first row, AND our player rows. --------
- 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 10.00% of the total screen width
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Multiboard_ShowDeaths Equal to True
-
Then - Actions
- Multiboard - Set the width for (Last created multiboard) item in column 2, row 0 to 4.00% of the total screen width
-
Else - Actions
- Multiboard - Set the width for (Last created multiboard) item in column 2, row 0 to 0.50% of the total screen width
-
If - Conditions
- Multiboard - Set the width for (Last created multiboard) item in column 3, row 0 to 3.00% of the total screen width
- Multiboard - Set the width for (Last created multiboard) item in column 4, row 0 to 5.00% of the total screen width
- Multiboard - Set the color for (Last created multiboard) item in column 2, row 0 to (70.00%, 70.00%, 70.00%) with 0.00% transparency
- Multiboard - Set the color for (Last created multiboard) item in column 3, row 0 to (70.00%, 70.00%, 70.00%) with 0.00% transparency
- Multiboard - Set the color for (Last created multiboard) item in column 4, row 0 to (70.00%, 70.00%, 70.00%) with 0.00% transparency
- -------- DEFINE PLAYERS ON THE BOARD --------
- Trigger - Run Sort Multiboard <gen> (ignoring conditions)
- -------- Troll Team --------
- Set TempInteger = 2
- Set Multiboard_Spots[1] = TempInteger
- Multiboard - Set the text for (Last created multiboard) item in column 1, row TempInteger to PlayerNames[1]
- Multiboard - Set the text for (Last created multiboard) item in column 2, row TempInteger to
- Multiboard - Set the text for (Last created multiboard) item in column 3, row TempInteger to 0
- Multiboard - Set the text for (Last created multiboard) item in column 4, row TempInteger to 0
- -------- Elves Team --------
- Set TempInteger = ((Number of players in PlayersTroll) + 4)
- Set Multiboard_Spots[7] = TempInteger
- Multiboard - Set the text for (Last created multiboard) item in column 1, row TempInteger to PlayerNames[7]
- Multiboard - Set the text for (Last created multiboard) item in column 2, row TempInteger to
- Multiboard - Set the text for (Last created multiboard) item in column 3, row TempInteger to 0
- Multiboard - Set the text for (Last created multiboard) item in column 4, row TempInteger to 0
- -------- Clock --------
- Set Multiboard_Clock = (PlayersCount + 6)
- Multiboard - Set the text for (Last created multiboard) item in column 1, row Multiboard_Clock to Game Time:
- Multiboard - Set the text for (Last created multiboard) item in column 3, row Multiboard_Clock to 0:00
- Multiboard - Set the color for (Last created multiboard) item in column 2, row 1 to (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Multiboard - Set the color for (Last created multiboard) item in column 3, row 1 to (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Multiboard - Set the color for (Last created multiboard) item in column 4, row 1 to (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Multiboard - Show (Last created multiboard)
Attachments
Last edited: