Dota Template multiboard works fine when I add it to my map it doesn't work

error0024

New Member
Reaction score
8
Code:
Events : none
codition : none
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)
    Player Group - Pick every player in Players and do (Actions)
        Loop - Actions
            Player - Set (Picked player) Food cap to 6
    -------- Sentinel --------
    Set PlayersSentinel = (All allies of Player 1 (Red))
    Player Group - Remove Player 1 (Red) from PlayersSentinel
    Set PlayersSentinelCount = (Number of players in PlayersSentinel)
    Set PlayersSentinelReverse = (All allies of Player 1 (Red))
    Player Group - Remove Player 1 (Red) from PlayersSentinelReverse
    Set PlayersSentinelPlaying = (All allies of Player 1 (Red))
    Player Group - Remove Player 1 (Red) from PlayersSentinelPlaying
    -------- Scourge --------
    Set PlayersScourge = (All allies of Player 12 (Brown))
    Player Group - Remove Player 12 (Brown) from PlayersScourge
    Set PlayersScourgeCount = (Number of players in PlayersScourge)
    Set PlayersScourgeReverse = (All allies of Player 12 (Brown))
    Player Group - Remove Player 12 (Brown) from PlayersScourgeReverse
    Set PlayersScourgePlaying = (All allies of Player 12 (Brown))
    Player Group - Remove Player 12 (Brown) from PlayersScourgePlaying
    -------- General --------
    Player - Turn Gives bounty On for Player 1 (Red)
    Player - Turn Gives bounty On for Player 12 (Brown)
    Player - Turn Gives bounty On for Neutral Hostile

Events
    Time - Elapsed game time is 10.00 seconds
codition : none
Actions
    Set Player_Colors[1] = |c00ff0303
    Set Player_Colors[2] = |c000042ff
    Set Player_Colors[3] = |c001ce6b9
    Set Player_Colors[4] = |c00540081
    Set Player_Colors[5] = |c00fffc01
    Set Player_Colors[6] = |c00ff8000
    Set Player_Colors[7] = |c0020c000
    Set Player_Colors[8] = |c00e55bb0
    Set Player_Colors[9] = |c00959697
    Set Player_Colors[10] = |c007ebff1
    Set Player_Colors[11] = |c00106246
    Set Player_Colors[12] = |c004e2a04
    Set Multiboard_ShowDeaths = True
    For each (Integer A) from 1 to 12, do (Actions)
        Loop - Actions
            Set PlayerNames[(Integer A)] = ((Player_Colors[(Integer A)] + (Name of (Player((Integer A))))) + |r)

Events
    Unit - A unit Finishes reviving
Conditions
    ((Reviving Hero) is in RevivableHeroes) Equal to True
Actions
    Unit Group - Remove (Reviving Hero) from RevivableHeroes
    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 Multiboard item in column 2, row Multiboard_Spots[(Player number of (Owner of (Reviving Hero)))] to  
        Else - Actions
            Countdown Timer - Destroy RevivableTimersWindows[(Player number of (Owner of (Reviving Hero)))]
    Camera - Pan camera for (Owner of (Reviving Hero)) to (Position of (Reviving Hero)) over 0.60 seconds
    Selection - Select (Reviving Hero) for (Owner of (Reviving Hero))

Events
    Time - ReviveTimers[2] expires
    Time - ReviveTimers[3] expires
    Time - ReviveTimers[4] expires
    Time - ReviveTimers[5] expires
    Time - ReviveTimers[6] expires
    Time - ReviveTimers[7] expires
    Time - ReviveTimers[8] expires
    Time - ReviveTimers[9] expires
    Time - ReviveTimers[10] expires
    Time - ReviveTimers[11] expires
Conditions
Actions
    Unit Group - Pick every unit in RevivableHeroes and do (Actions)
        Loop - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                If - Conditions
                    (Remaining time for ReviveTimers[(Player number of (Owner of (Picked unit)))]) Less than 1.00
                Then - Actions
                    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        If - Conditions
                            ((Owner of (Picked unit)) is in PlayersSentinel) Equal to True
                        Then - Actions
                            Hero - Instantly revive (Picked unit) at (Center of Good Force Revival <gen>), Show revival graphics
                        Else - Actions
                            Hero - Instantly revive (Picked unit) at (Center of Evil Force Revival <gen>), Show revival graphics
                Else - Actions

Events
    Unit - A unit Dies
Conditions
    ((Dying unit) is A Hero) Equal to True
Actions
    Unit Group - Add (Dying unit) to RevivableHeroes
    Set TempReal = (((Real((Hero level of (Dying unit)))) x Hero_Revive_Time_Factor) + 5.00)
    If (UberMode_On Equal to True) then do (Set TempReal = (TempReal x 0.50)) else do (Do nothing)
    Countdown Timer - Start ReviveTimers[(Player number of (Owner of (Dying unit)))] as a One-shot timer that will expire in TempReal seconds
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            Multiboard_ShowDeaths Equal to False
        Then - Actions
            Countdown Timer - Create a timer window for (Last started timer) with title (Name of (Owner of (Dying unit)))
            Countdown Timer - Show (Last created timer window) for (Owner of (Dying unit))
            Set RevivableTimersWindows[(Player number of (Owner of (Dying unit)))] = (Last created timer window)
        Else - Actions
Events
    Time - Elapsed game time is 12.00 seconds
Actions
    Countdown Timer - Start Game_Time as a One-shot timer that will expire in 999999.00 seconds
    Leaderboard - Create a leaderboard for PlayersSentinel titled Good Force
    Set LeaderboardSentinel = (Last created leaderboard)
    Leaderboard - Hide LeaderboardSentinel
    Leaderboard - Create a leaderboard for PlayersScourge titled Evil Force
    Set LeaderboardScourge = (Last created leaderboard)
    Leaderboard - Hide LeaderboardScourge
    Player Group - Pick every player in PlayersSentinel and do (Actions)
        Loop - Actions
            Leaderboard - Add (Picked player) to LeaderboardSentinel with label (Name of (Picked player)) and value 0
    Player Group - Pick every player in PlayersScourge and do (Actions)
        Loop - Actions
            Leaderboard - Add (Picked player) to LeaderboardScourge with label (Name of (Picked player)) and value 0
    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
Actions
    Multiboard - Create a multiboard with 4 columns and (6 + PlayersCount) rows, titled The Good Vs Evil Fo...
    Set Multiboard = (Last created multiboard)
    Multiboard - Set the text for 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 Multiboard item in column 2, row 1 to Dead
        Else - Actions
    Multiboard - Set the text for Multiboard item in column 3, row 1 to Kills
    Multiboard - Set the text for 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 Multiboard item in column 0, row 0 to Show text and Hide icons
    Multiboard - Set the width for 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 Multiboard item in column 2, row 0 to 4.00% of the total screen width
        Else - Actions
            Multiboard - Set the width for Multiboard item in column 2, row 0 to 0.50% of the total screen width
    Multiboard - Set the width for Multiboard item in column 3, row 0 to 3.00% of the total screen width
    Multiboard - Set the width for Multiboard item in column 4, row 0 to 5.00% of the total screen width
    Multiboard - Set the color for Multiboard item in column 2, row 0 to (70.00%, 70.00%, 70.00%) with 0.00% transparency
    Multiboard - Set the color for Multiboard item in column 3, row 0 to (70.00%, 70.00%, 70.00%) with 0.00% transparency
    Multiboard - Set the color for 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)
    -------- Sentinel Team --------
    Set TempInteger = 2
    Set Multiboard_Spots[1] = TempInteger
    Multiboard - Set the text for Multiboard item in column 1, row TempInteger to PlayerNames[1]
    Multiboard - Set the text for Multiboard item in column 2, row TempInteger to  
    Multiboard - Set the text for Multiboard item in column 3, row TempInteger to  0
    Multiboard - Set the text for Multiboard item in column 4, row TempInteger to   0
    -------- Scourge Team --------
    Set TempInteger = ((Number of players in PlayersSentinel) + 4)
    Set Multiboard_Spots[12] = TempInteger
    Multiboard - Set the text for Multiboard item in column 1, row TempInteger to PlayerNames[12]
    Multiboard - Set the text for Multiboard item in column 2, row TempInteger to  
    Multiboard - Set the text for Multiboard item in column 3, row TempInteger to  0
    Multiboard - Set the text for Multiboard item in column 4, row TempInteger to   0
    -------- Clock --------
    Set Multiboard_Clock = (PlayersCount + 6)
    Multiboard - Set the text for Multiboard item in column 1, row Multiboard_Clock to Game Time:
    Multiboard - Set the text for Multiboard item in column 3, row Multiboard_Clock to 0:00
    Multiboard - Set the color for Multiboard item in column 2, row 1 to (100.00%, 100.00%, 100.00%) with 0.00% transparency
    Multiboard - Set the color for Multiboard item in column 3, row 1 to (100.00%, 100.00%, 100.00%) with 0.00% transparency
    Multiboard - Set the color for Multiboard item in column 4, row 1 to (100.00%, 100.00%, 100.00%) with 0.00% transparency
    Multiboard - Show Multiboard
Events
    Unit - A unit Dies
Conditions
    ((Dying unit) is A Hero) Equal to True
    (Player number of (Owner of (Killing unit))) Greater than 0
    (Player number of (Owner of (Killing unit))) Less than or equal to 12
Actions
    Set Score_Kills[(Player number of (Owner of (Killing unit)))] = (Score_Kills[(Player number of (Owner of (Killing unit)))] + 1)
    Set Score_Deaths[(Player number of (Owner of (Dying unit)))] = (Score_Deaths[(Player number of (Owner of (Dying unit)))] + 1)
    If (((Owner of (Dying unit)) is in PlayersSentinel) Equal to True) then do (Set Score_Deaths[1] = (Score_Deaths[1] + 1)) else do (Do nothing)
    If (((Owner of (Dying unit)) is in PlayersScourge) Equal to True) then do (Set Score_Deaths[12] = (Score_Deaths[12] + 1)) else do (Do nothing)
    Set TempInteger = (((Hero level of (Dying unit)) x 5) + 100)
    Player - Add TempInteger to (Owner of (Killing unit)) Current gold
    Game - Display to (All players) the text: (PlayerNames[(Player number of (Owner of (Killing unit)))] + ( has just pawned  + (PlayerNames[(Player number of (Owner of (Dying unit)))] + ('s head for an extra  + ((String(TempInteger)) +  gold.)))))
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            ((Owner of (Killing unit)) is in PlayersSentinel) Equal to True
        Then - Actions
            Set Score_Kills[1] = (Score_Kills[1] + 1)
        Else - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            ((Owner of (Killing unit)) is in PlayersScourge) Equal to True
        Then - Actions
            Set Score_Kills[12] = (Score_Kills[12] + 1)
        Else - Actions
    Trigger - Run Sort Multiboard <gen> (checking conditions)
    Multiboard - Set the text for Multiboard item in column 3, row Multiboard_Spots[1] to (  + (String(Score_Kills[1])))
    Multiboard - Set the text for Multiboard item in column 3, row Multiboard_Spots[12] to (  + (String(Score_Kills[12])))
    Multiboard - Set the text for Multiboard item in column 4, row Multiboard_Spots[1] to (   + (String(Score_Deaths[1])))
    Multiboard - Set the text for Multiboard item in column 4, row Multiboard_Spots[12] to (   + (String(Score_Deaths[12])))
Events
    Time - Every 1.00 seconds of game time
Actions
    Set Game_Minutes = ((Integer((Elapsed time for Game_Time))) / 60)
    Set Game_Seconds = ((Integer((Elapsed time for Game_Time))) mod 60)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            Game_Seconds Greater than or equal to 10
        Then - Actions
            Multiboard - Set the text for Multiboard item in column 3, row Multiboard_Clock to ((String(Game_Minutes)) + (: + (String(Game_Seconds))))
        Else - Actions
            Multiboard - Set the text for Multiboard item in column 3, row Multiboard_Clock to ((String(Game_Minutes)) + (:0 + (String(Game_Seconds))))
Events
    Time - Every 1.00 seconds of game time
Conditions
    (RevivableHeroes is empty) Equal to False
Actions
    Unit Group - Pick every unit in RevivableHeroes and do (Actions)
        Loop - Actions
            Multiboard - Set the text for Multiboard item in column 2, row Multiboard_Spots[(Player number of (Owner of (Picked unit)))] to (String((Integer((Remaining time for ReviveTimers[(Player number of (Owner of (Picked unit)))])))))
Actions
    Player Group - Pick every player in PlayersSentinel and do (Actions)
        Loop - Actions
            Leaderboard - Change the value for (Picked player) in LeaderboardSentinel to ((Score_Kills[(Player number of (Picked player))] x 10000) - Score_Deaths[(Player number of (Picked player))])
    Player Group - Pick every player in PlayersScourge and do (Actions)
        Loop - Actions
            Leaderboard - Change the value for (Picked player) in LeaderboardScourge to ((Score_Kills[(Player number of (Picked player))] x 10000) - Score_Deaths[(Player number of (Picked player))])
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            Sort_Board_By_Kills Equal to True
        Then - Actions
            Leaderboard - Sort LeaderboardSentinel by Value in Descending order
            Leaderboard - Sort LeaderboardScourge by Value in Descending order
        Else - Actions
            Leaderboard - Sort LeaderboardSentinel by Player in Ascending order
            Leaderboard - Sort LeaderboardScourge by Player in Ascending order
    Set TempInteger = 2
    Player Group - Pick every player in PlayersSentinel and do (Actions)
        Loop - Actions
            Set Multiboard_Spots[(Player number of (Picked player))] = ((Position of (Picked player) in LeaderboardSentinel) + TempInteger)
    Set TempInteger = ((Number of players in PlayersSentinel) + 4)
    Player Group - Pick every player in PlayersScourge and do (Actions)
        Loop - Actions
            Set Multiboard_Spots[(Player number of (Picked player))] = ((Position of (Picked player) in LeaderboardScourge) + TempInteger)
    Player Group - Pick every player in Players and do (Actions)
        Loop - Actions
            Set TempInteger = (Player number of (Picked player))
            Multiboard - Set the text for Multiboard item in column 1, row Multiboard_Spots[TempInteger] to PlayerNames[TempInteger]
            Multiboard - Set the text for Multiboard item in column 2, row Multiboard_Spots[TempInteger] to  
            Multiboard - Set the text for Multiboard item in column 3, row Multiboard_Spots[TempInteger] to (  + (String(Score_Kills[TempInteger])))
            Multiboard - Set the text for Multiboard item in column 4, row Multiboard_Spots[TempInteger] to (   + (String(Score_Deaths[TempInteger])))

ok here's dota templete multiboard i edited something cause player 7 i change to player 12 .... so my map is aos so anyone can help me?
 
B

BlizzScripts

Guest
rofl!!!! so many lines, dude wait the helper mod realse and u will need just 1 line to call the advanced multiboard and you can adjust any color..
 

emjlr3

Change can be a good thing
Reaction score
395
how does it not work? does it do nothing...or what? try sending your map to ace and ryoko, maybe they will take a look and tell you what the deal is
 

mixmax2

RedArmyGangsta
Reaction score
31
perhaps the dota template has triggers that run with each other, so if u just copy one big trigger without changing all of the data to match to your map, of course its not gonna work. theres probably alot of variables and all that other stuff, that are set up in different triggers in the template.
 

error0024

New Member
Reaction score
8
well this trigger is from .... dota templete ok ... i change player 7 to 12 .. and then the multiboard started to have problem when reviving dint show time ... and there's a player name its player 1 name , player 12 name.

so there's no player name! help plz
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> Events : none

The very first trigger you posted here doesn't have an event.
Do you call that trigger from another one that runs with "Map Initialization"? Or is it not running at all?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top