• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Multiboard AoS v1.00 [GUI]

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
Another multiboard... This multiboard is meant to be used in AoS - themed map. The multiboard consists the major important things that you may need in any AoS - The level, kills, deaths and Elapsed time. This has an extra function: Shows the gold to only allies of player.
The multiboard also shows a gray highlight for the player name when he or she leaves the game.

Documentation:
JASS:
//
//                  |\     /|  |   |  |    -----  -----  |---\  |---|  |---|  |--\  |--\
//                  | \   / |  |   |  |      |      |    |   |  |   |  |   |  |  |  |   |
//                  | \   / |  |   |  |      |      |    |---   |   |  |---|  |--|  |   |
//                  |  \ /  |  |   |  |      |      |    |   |  |   |  |   |  | \   |   |
//                  |   V   |  |---|  |---   |    -----  |---/  |---|  |   |  |  \  |--/
//
//                                           [ AoS Style ]
//
//                                          by Priest170234
//
//                                          Version 1.00
//
//
//                  MULTIBOARD [AoS] is a multiboard to be used in Aeon of Strife games where
//                  common statistics are shown.
//
//                  This is a 5 Versus 5 Multiboard with 2 Teams.
//                  Player numbers ranging from 1 to 5 and 6 to 10.
//
//
//__________________________________________________________________________________________________________________________
//  INCLUDES
//__________________________________________________________________________________________________________________________
//  1.  Team one name and Team two name
//  2.  Player names
//  3.  Hero Kill, Hero Death and Hero Level
//  4.  Gold data for each team where only allies can their gold and not enemy's
//  5.  Elapsed time of game
//  6.  Showing of Player who left the game
//
//
//__________________________________________________________________________________________________________________________
//  CONFIGURABLE VARIABLES
//__________________________________________________________________________________________________________________________
//  -   udg_MB_NAME                 :   String      :   Name of the Multiboard
//  -   udg_MB_TEAM_ONE_NAME        :   String      :   Name of Team one
//  -   udg_MB_TEAM_TWO_NAME        :   String      :   Name of Team two
//  -   udg_GOLD_ICON_PATH          :   String      :   Directory for icon for the gold
//
//
//__________________________________________________________________________________________________________________________
//  REQUIRED VARIABLES
//__________________________________________________________________________________________________________________________
//  -   udg_MB_PLAYER_COUNT_ALL     :   Integer
//  -   udg_MB_TIME_MINUTES         :   Integer
//  -   udg_MB_TIME_SECONDS         :   Integer 
//  -   udg_MB_DEATHS               :   Integer Array
//  -   udg_MB_KILLS                :   Integer Array
//  -   udg_MB_LB                   :   Leaderboard Array
//  -   udg_MB                      :   Multiboard 
//  -   udg_MB_PG_ALL               :   Player Group
//  -   udg_MB_T1_PLAYERS           :   Player Group 
//  -   udg_MB_T2_PLAYERS           :   Player Group
//  -   Colour                      :   String Array
//
//
//__________________________________________________________________________________________________________________________
//  HOW TO IMPORT?
//__________________________________________________________________________________________________________________________
//  1.  Go to File > Preferences and check (tick) the "Automatically create unknown variables when pasting trigger data"
//  2.  Copy the folder "Multiboard AoS" that contains ALL the triggers into your map
//  3.  Configure the Multiboard names and you're done!
//
//
//-------------------------------------------------------------------------------------------------------------------------
//                                           END OF DOCUMENTARY
//-------------------------------------------------------------------------------------------------------------------------


  • MBCreate
    • Events
    • Conditions
    • Actions
      • Multiboard - Create a multiboard with 5 columns and (MB_PLAYER_COUNT_ALL + 6) rows, titled MB_NAME
      • Set MB[1] = (Last created multiboard)
      • Multiboard - Create a multiboard with 5 columns and (MB_PLAYER_COUNT_ALL + 6) rows, titled MB_NAME
      • Set MB[2] = (Last created multiboard)
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • Multiboard - Hide MB[(Integer A)]
          • Multiboard - Set the width for MB[(Integer A)] item in column 1, row 0 to 7.00% of the total screen width
          • Multiboard - Set the width for MB[(Integer A)] item in column 2, row 0 to 3.00% of the total screen width
          • Multiboard - Set the width for MB[(Integer A)] item in column 3, row 0 to 3.00% of the total screen width
          • Multiboard - Set the width for MB[(Integer A)] item in column 4, row 0 to 3.00% of the total screen width
          • Multiboard - Set the width for MB[(Integer A)] item in column 5, row 0 to 6.00% of the total screen width
          • Multiboard - Set the display style for MB[(Integer A)] item in column 0, row 0 to Show text and Hide icons
          • Multiboard - Set the display style for MB[(Integer A)] item in column 5, row 1 to Show text and Show icons
          • Multiboard - Set the text for MB[(Integer A)] item in column 1, row 2 to MB_TEAM_ONE_NAME
          • Multiboard - Set the text for MB[(Integer A)] item in column 1, row ((Number of players in MB_T1_PLAYERS) + 4) to MB_TEAM_TWO_NAME
          • Multiboard - Set the text for MB[(Integer A)] item in column 2, row 1 to L
          • Multiboard - Set the text for MB[(Integer A)] item in column 3, row 1 to K
          • Multiboard - Set the text for MB[(Integer A)] item in column 4, row 1 to D
          • Multiboard - Set the text for MB[(Integer A)] item in column 5, row 1 to (Colour[14] + Gold|r)
          • Multiboard - Set the icon for MB[(Integer A)] item in column 5, row 1 to MB_GOLD_ICON_PATH
          • Multiboard - Set the width for MB[(Integer A)] item in column 2, row (MB_PLAYER_COUNT_ALL + 6) to 5.00% of the total screen width
          • Multiboard - Set the text for MB[(Integer A)] item in column 1, row (MB_PLAYER_COUNT_ALL + 6) to Time Elapsed:
          • Multiboard - Set the text for MB[(Integer A)] item in column 2, row (MB_PLAYER_COUNT_ALL + 6) to 0 : 00
          • Player Group - Pick every player in MB_T1_PLAYERS and do (Actions)
            • Loop - Actions
              • Multiboard - Set the text for MB[(Integer A)] item in column 1, row ((Position of (Picked player) in MB_LB[1]) + 2) to (Colour[(Player number of (Picked player))] + ((Name of (Picked player)) + |r))
              • Multiboard - Set the text for MB[1] item in column 5, row ((Position of (Picked player) in MB_LB[1]) + 2) to (Colour[14] + ((String(((Picked player) Current gold))) + |r))
          • Player Group - Pick every player in MB_T2_PLAYERS and do (Actions)
            • Loop - Actions
              • Multiboard - Set the text for MB[(Integer A)] item in column 1, row ((Position of (Picked player) in MB_LB[2]) + ((Number of players in MB_T1_PLAYERS) + 4)) to (Colour[(Player number of (Picked player))] + ((Name of (Picked player)) + |r))
              • Multiboard - Set the text for MB[2] item in column 5, row ((Position of (Picked player) in MB_LB[2]) + ((Number of players in MB_T1_PLAYERS) + 4)) to (Colour[14] + ((String(((Picked player) Current gold))) + |r))
          • For each (Integer B) from 2 to ((Number of players in MB_T1_PLAYERS) + 2), do (Actions)
            • Loop - Actions
              • Multiboard - Set the text for MB[(Integer A)] item in column 3, row (Integer B) to 0
              • Multiboard - Set the text for MB[(Integer A)] item in column 4, row (Integer B) to 0
          • For each (Integer B) from ((Number of players in MB_T1_PLAYERS) + 4) to (((Number of players in MB_T1_PLAYERS) + 4) + (Number of players in MB_T2_PLAYERS)), do (Actions)
            • Loop - Actions
              • Multiboard - Set the text for MB[(Integer A)] item in column 3, row (Integer B) to 0
              • Multiboard - Set the text for MB[(Integer A)] item in column 4, row (Integer B) to 0
      • -------- ----- SHOWING MULTIBOARD TO RESPECTIVE TEAMS! ----- --------
      • For each (Integer A) from 0 to 4, do (Actions)
        • Loop - Actions
          • Custom script: if (GetLocalPlayer() == Player(GetForLoopIndexA())) then
          • Multiboard - Show MB[1]
          • Custom script: endif
      • For each (Integer A) from 5 to 9, do (Actions)
        • Loop - Actions
          • Custom script: if (GetLocalPlayer() == Player(GetForLoopIndexA())) then
          • Multiboard - Show MB[2]
          • Custom script: endif
      • -------- ----- PLAYER LEAVES! ----- --------
      • Player Group - Pick every player in MB_PG_ALL and do (Actions)
        • Loop - Actions
          • Trigger - Add to MBUpdateLeaver <gen> the event (Player - (Picked player) leaves the game)
      • -------- ----- TURN ON UPDATING OF MULTIBOARD TRIGGERS! ----- --------
      • Trigger - Turn on MBUpdateDying <gen>
      • Trigger - Turn on MBUpdateLeaver <gen>
      • Trigger - Turn on MBUpdateLevel <gen>
      • Trigger - Turn on MBUpdateTimeAndGold <gen>
      • -------- ----- I DON'T NEED THIS NOW! ----- --------
      • Custom script: call DestroyTrigger(gg_trg_MBCreate)
  • MBUpdateDying
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Set MB_DEATHS[(Player number of (Owner of (Triggering unit)))] = (MB_DEATHS[(Player number of (Owner of (Triggering unit)))] + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Killing unit)) is an enemy of (Owner of (Triggering unit))) Equal to True
        • Then - Actions
          • Set MB_KILLS[(Player number of (Owner of (Killing unit)))] = ((Player number of (Owner of (Killing unit))) + 1)
        • Else - Actions
      • -------- // UPDATE MULTIBOARD // --------
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Triggering unit)) is an ally of Player 1 (Red)) Equal to True
            • Then - Actions
              • Multiboard - Set the text for MB[(Integer A)] item in column 4, row ((Position of (Owner of (Triggering unit)) in MB_LB[1]) + 2) to (String(MB_DEATHS[(Player number of (Owner of (Triggering unit)))]))
              • Multiboard - Set the text for MB[(Integer A)] item in column 4, row 2 to (String((MB_DEATHS[1] + (MB_DEATHS[2] + (MB_DEATHS[3] + (MB_DEATHS[4] + MB_DEATHS[5]))))))
            • Else - Actions
              • Multiboard - Set the text for MB[(Integer A)] item in column 4, row ((Position of (Owner of (Triggering unit)) in MB_LB[2]) + ((Number of players in MB_T1_PLAYERS) + 4)) to (String(MB_DEATHS[(Player number of (Owner of (Triggering unit)))]))
              • Multiboard - Set the text for MB[(Integer A)] item in column 4, row ((Number of players in MB_T1_PLAYERS) + 4) to (String((MB_DEATHS[6] + (MB_DEATHS[7] + (MB_DEATHS[8] + (MB_DEATHS[9] + MB_DEATHS[10]))))))
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Killing unit)) is an ally of Player 1 (Red)) Equal to True
            • Then - Actions
              • Multiboard - Set the text for MB[(Integer A)] item in column 3, row ((Position of (Owner of (Killing unit)) in MB_LB[1]) + 2) to (String(MB_KILLS[(Player number of (Owner of (Killing unit)))]))
              • Multiboard - Set the text for MB[(Integer A)] item in column 3, row 2 to (String((MB_KILLS[1] + (MB_KILLS[2] + (MB_KILLS[3] + (MB_KILLS[4] + MB_KILLS[5]))))))
            • Else - Actions
              • Multiboard - Set the text for MB[(Integer A)] item in column 3, row ((Position of (Owner of (Killing unit)) in MB_LB[2]) + ((Number of players in MB_T1_PLAYERS) + 4)) to (String(MB_KILLS[(Player number of (Owner of (Killing unit)))]))
              • Multiboard - Set the text for MB[(Integer A)] item in column 3, row ((Number of players in MB_T1_PLAYERS) + 4) to (String((MB_KILLS[6] + (MB_KILLS[7] + (MB_KILLS[8] + (MB_KILLS[9] + MB_KILLS[10]))))))
  • MBUpdateLeaver
    • Events
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Triggering player) is an ally of Player 1 (Red)) Equal to True
            • Then - Actions
              • Multiboard - Set the text for MB[(Integer A)] item in column 1, row ((Position of (Triggering player) in MB_LB[1]) + 2) to (Colour[9] + ((Name of (Triggering player)) + |r))
            • Else - Actions
              • Multiboard - Set the text for MB[(Integer A)] item in column 1, row ((Position of (Triggering player) in MB_LB[2]) + ((Number of players in MB_T1_PLAYERS) + 4)) to (Colour[9] + ((Name of (Triggering player)) + |r))
  • MBUpdateLevel
    • Events
      • Unit - A unit Gains a level
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Triggering unit)) is an ally of Player 1 (Red)) Equal to True
            • Then - Actions
              • Multiboard - Set the text for MB[(Integer A)] item in column 2, row ((Position of (Owner of (Triggering unit)) in MB_LB[1]) + 2) to (String((Hero level of (Triggering unit))))
            • Else - Actions
              • Multiboard - Set the text for MB[(Integer A)] item in column 2, row ((Position of (Owner of (Triggering unit)) in MB_LB[2]) + ((Number of players in MB_T1_PLAYERS) + 4)) to (String((Hero level of (Triggering unit))))
  • MBUpdateTimeAndGold
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set MB_TIME_SECONDS = (MB_TIME_SECONDS + 1)
      • Player Group - Pick every player in MB_T1_PLAYERS and do (Actions)
        • Loop - Actions
          • Multiboard - Set the text for MB[1] item in column 5, row ((Position of (Picked player) in MB_LB[1]) + 2) to (Colour[14] + ((String(((Picked player) Current gold))) + |r))
      • Player Group - Pick every player in MB_T2_PLAYERS and do (Actions)
        • Loop - Actions
          • Multiboard - Set the text for MB[2] item in column 5, row ((Position of (Picked player) in MB_LB[2]) + ((Number of players in MB_T1_PLAYERS) + 4)) to (Colour[14] + ((String(((Picked player) Current gold))) + |r))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • MB_TIME_SECONDS Equal to 60
        • Then - Actions
          • Set MB_TIME_MINUTES = (MB_TIME_MINUTES + 1)
          • Set MB_TIME_SECONDS = 0
        • Else - Actions
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • MB_TIME_SECONDS Greater than or equal to 10
            • Then - Actions
              • Multiboard - Set the text for MB[(Integer A)] item in column 2, row (MB_PLAYER_COUNT_ALL + 6) to (((String(MB_TIME_MINUTES)) + : ) + (String(MB_TIME_SECONDS)))
            • Else - Actions
              • Multiboard - Set the text for MB[(Integer A)] item in column 2, row (MB_PLAYER_COUNT_ALL + 6) to (((String(MB_TIME_MINUTES)) + : 0) + (String(MB_TIME_SECONDS)))
  • MBSettings
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • -------- CONFIGURABLES --------
      • Set MB_NAME = My Multiboard
      • Set MB_TEAM_ONE_NAME = (Colour[11] + Team 1|r)
      • Set MB_TEAM_TWO_NAME = (Colour[15] + Team 2|r)
      • Set MB_GOLD_ICON_PATH = UI\Feedback\Resources\ResourceGold.blp
      • -------- ------------------------------------------------------------------------------------------------------------------------------------------------------ --------
      • -------- ------------------------------------------------------------------------------------------------------------------------------------------------------ --------
      • -------- ------------------------------------------------------------------------------------------------------------------------------------------------------ --------
      • -------- -------------------------------------------------- DO NOT TOUCH !!!!! -------------------------------------------------- --------
      • -------- ------------------------------------------------------------------------------------------------------------------------------------------------------ --------
      • -------- ------------------------------------------------------------------------------------------------------------------------------------------------------ --------
      • -------- ------------------------------------------------------------------------------------------------------------------------------------------------------ --------
      • -------- ----- CREATION OF LEADERBOARD TO GET MULTIBOARD POSITION ----- --------
      • Set MB_PG_ALL = (All players)
      • Set MB_T1_PLAYERS = (All allies of Player 1 (Red))
      • Set MB_T2_PLAYERS = (All allies of Player 6 (Orange))
      • Set MB_PLAYER_COUNT_ALL = (Number of players in MB_PG_ALL)
      • Leaderboard - Create a leaderboard for MB_T1_PLAYERS titled Team 1
      • Set MB_LB[1] = (Last created leaderboard)
      • Leaderboard - Hide (Last created leaderboard)
      • Leaderboard - Create a leaderboard for MB_T2_PLAYERS titled Team 2
      • Set MB_LB[2] = (Last created leaderboard)
      • Leaderboard - Hide (Last created leaderboard)
      • Player Group - Pick every player in MB_T1_PLAYERS and do (Actions)
        • Loop - Actions
          • Leaderboard - Add (Picked player) to MB_LB[1] with label (Name of (Picked player)) and value 0
      • Player Group - Pick every player in MB_T2_PLAYERS and do (Actions)
        • Loop - Actions
          • Leaderboard - Add (Picked player) to MB_LB[2] with label (Name of (Picked player)) and value 0
      • -------- ------------------------------------------------------------------------------------------------------------------------------------------------------ --------
      • -------- ------------------------------------------------------------------------------------------------------------------------------------------------------ --------
      • -------- ------------------------------------------------------------------------------------------------------------------------------------------------------ --------
[trigger="Example Usage"]
Test
Events
Time - Elapsed game time is 0.10 seconds
Conditions
Actions
Game - Display to (All players) the text: Creating Multiboard...
Trigger - Run MBCreate <gen> (ignoring conditions)
[/trigger]


---------------------------------------------------------------
CREDITS NOT REQUIRED, BUT APPRECIATED!
PLEASE RATE, AND IF POSSIBLE VOTE FOR APPROVAL!
---------------------------------------------------------------

Need help configuring the multiboard? No worries, come here!:
Request Forum Page

Keywords:
Multiboard, AoS, Aeon of Strife, Priest170234
Contents

Multiboard AoS v1.00 (Map)

Reviews
12th Dec 2015 IcemanBo: Too long time as NeedsFix. Rejected. 03:18, 12th Dec 2015 IcemanBo:
Level 12
Joined
Apr 16, 2010
Messages
584
Why do you create those boards, they very simple, well first one you did is useful, but this one is i'm sorry but BAD, just like in DotA. If you want to make it like in DotA i suggest you to do not upload it, because DotA's multiboard isn't good, and it also has a lot of bugs, when you type switch commands. So i suggest you to update your first multiboard, it's a lot better, and has better future. I don't think that multiboard like that can be used in other maps except DotA and similar.
And the multiboard is too simple, it only includes kills, deaths and gold, i don't see any information that i would like too see during the game like what team leads. I can this information that is on multiboard anyway. If you want this project to be approved i suggest you to add a lot more possibilities...
 
Level 16
Joined
Jan 31, 2009
Messages
1,792
This isn't really a good system since there is currently a few bugs on it. It doesn't show the gold properly and the kills and deaths are all wrong since they sometimes increase the deaths when you kill something or it'll increase both death and kills at the same time.
I do not recommend this system to anyone in its current state as it is not bug free.
 
Level 8
Joined
Oct 31, 2010
Messages
238
This isn't really a good system since there is currently a few bugs on it. It doesn't show the gold properly and the kills and deaths are all wrong since they sometimes increase the deaths when you kill something or it'll increase both death and kills at the same time.
I do not recommend this system to anyone in its current state as it is not bug free.

About the gold property, may I know what you did to make the system bug? Like, did you change your player team to Team 2 or something?

About the kills and deaths stuff, did you read the trigger
  • MBUpdateDying
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Set MB_DEATHS[(Player number of (Owner of (Triggering unit)))] = (MB_DEATHS[(Player number of (Owner of (Triggering unit)))] + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Killing unit)) is an enemy of (Owner of (Triggering unit))) Equal to True
        • Then - Actions
          • Set MB_KILLS[(Player number of (Owner of (Killing unit)))] = ((Player number of (Owner of (Killing unit))) + 1)
        • Else - Actions
      • -------- // UPDATE MULTIBOARD // --------
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Triggering unit)) is an ally of Player 1 (Red)) Equal to True
            • Then - Actions
              • Multiboard - Set the text for MB[(Integer A)] item in column 4, row ((Position of (Owner of (Triggering unit)) in MB_LB[1]) + 2) to (String(MB_DEATHS[(Player number of (Owner of (Triggering unit)))]))
              • Multiboard - Set the text for MB[(Integer A)] item in column 4, row 2 to (String((MB_DEATHS[1] + (MB_DEATHS[2] + (MB_DEATHS[3] + (MB_DEATHS[4] + MB_DEATHS[5]))))))
            • Else - Actions
              • Multiboard - Set the text for MB[(Integer A)] item in column 4, row ((Position of (Owner of (Triggering unit)) in MB_LB[2]) + ((Number of players in MB_T1_PLAYERS) + 4)) to (String(MB_DEATHS[(Player number of (Owner of (Triggering unit)))]))
              • Multiboard - Set the text for MB[(Integer A)] item in column 4, row ((Number of players in MB_T1_PLAYERS) + 4) to (String((MB_DEATHS[6] + (MB_DEATHS[7] + (MB_DEATHS[8] + (MB_DEATHS[9] + MB_DEATHS[10]))))))
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Killing unit)) is an ally of Player 1 (Red)) Equal to True
            • Then - Actions
              • Multiboard - Set the text for MB[(Integer A)] item in column 3, row ((Position of (Owner of (Killing unit)) in MB_LB[1]) + 2) to (String(MB_KILLS[(Player number of (Owner of (Killing unit)))]))
              • Multiboard - Set the text for MB[(Integer A)] item in column 3, row 2 to (String((MB_KILLS[1] + (MB_KILLS[2] + (MB_KILLS[3] + (MB_KILLS[4] + MB_KILLS[5]))))))
            • Else - Actions
              • Multiboard - Set the text for MB[(Integer A)] item in column 3, row ((Position of (Owner of (Killing unit)) in MB_LB[2]) + ((Number of players in MB_T1_PLAYERS) + 4)) to (String(MB_KILLS[(Player number of (Owner of (Killing unit)))]))
              • Multiboard - Set the text for MB[(Integer A)] item in column 3, row ((Number of players in MB_T1_PLAYERS) + 4) to (String((MB_KILLS[6] + (MB_KILLS[7] + (MB_KILLS[8] + (MB_KILLS[9] + MB_KILLS[10]))))))
The first condition already filters out that the dying unit MUST be a hero.
Next condition, the deaths only add up to the dying player's hero.
Next, the condition of adding kills, is provided that the killing unit is an enemy of the player of the dying hero.
So when you suicide, you don't add up to the kills.
 

Bribe

Code Moderator
Level 50
Joined
Sep 26, 2009
Messages
9,464
On top of multiboard being probably the ugliest possible thing in WarCraft III, this also suffers from a horrific lack of efficiency, features and errors.

1. Dependency on (Player 1) makes this fail when that slot state is empty.
2. Lots of spamming of (Owner of (Triggering unit)) in places where it could just be (Triggering player) or, even better, set the triggering player to a variable before spamming (Triggering player) it repeatedly (lowering performance).
3. (Integer A) is really slow compared to a normal integer variable loop.
4. Why are there two multiboards? Only one can exist at the same time. I don't follow your logic here at all.
 
Level 4
Joined
Jul 22, 2010
Messages
74
test

  • Set MB_KILLS[(Player number of (Owner of (Killing unit)))] = ((Player number of (Owner of (Killing unit))) + 1)
THIS will go wrong!
i think it should be:

  • Set MB_KILLS[(Player number of (Owner of (Killing unit)))] = MB_KILLS((Player number of (Owner of (Killing unit))) + 1)
 
Last edited:
Top