• 🏆 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!

Player Specific Multiboard Request!

Status
Not open for further replies.
Level 10
Joined
Jan 19, 2010
Messages
393
Hmm i think it is somewhere on this forum :/ I want help you but i have some unworking command in triggers :(
  • Multiboard init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 1 to (Number of players), do (Actions)
        • Loop - Actions
          • Multiboard - Create a multiboard with 2 columns and 1 rows, titled (Name of (Player((Integer A))))
          • Set MultiBoards[(Integer A)] = (Last created multiboard)
          • Multiboard - Set the display style for MultiBoards[(Integer A)] item in column 1, row 1 to Show text and Hide icons
          • Multiboard - Set the display style for MultiBoards[(Integer A)] item in column 2, row 1 to Show text and Hide icons
          • Multiboard - Set the text for MultiBoards[(Integer A)] item in column 1, row 1 to Kills
          • Multiboard - Set the text for MultiBoards[(Integer A)] item in column 2, row 1 to (String(Kills[(Integer A)]))
          • Multiboard - Set the width for MultiBoards[(Integer A)] item in column 1, row 1 to 3.00% of the total screen width
          • Multiboard - Set the width for MultiBoards[(Integer A)] item in column 2, row 1 to 3.00% of the total screen width
          • Player Group - Pick every player in (Player group((Player((Integer A))))) and do (Actions)
            • Loop - Actions
              • Multiboard - Show MultiBoards[(Integer A)]
  • Kills Detection
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Player Group - Pick every player in (Player group((Owner of (Killing unit)))) and do (Actions)
        • Loop - Actions
          • Set Kills[(Player number of (Picked player))] = (Kills[(Player number of (Picked player))] + 1)
          • Multiboard - Set the text for MultiBoards[(Player number of (Picked player))] item in column 2, row 1 to (String(Kills[(Player number of (Picked player))]))
I think there is everything OK so fix it if its wrong :)
 
Last edited:
Fortunenately, it is not neccesary to use multiple Multiboards because these are local and wont cause asynchron games if changed via GetLocalPlayer()
So the triggers will work this way:
  • Multiboard init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set udg_tempint=GetConvertedPlayerID(GetLocalPlayer()) //Custom Script
      • Multiboard - Create a multiboard with 2 columns and 1 rows, titled (Name of (Player(tempint)))
      • Set MultiBoard = (Last created multiboard)
      • Multiboard - Set the display style for MultiBoard item in column 1, row 1 to Show text and Hide icons
      • Multiboard - Set the display style for MultiBoard item in column 2, row 1 to Show text and Hide icons
      • Multiboard - Set the text for MultiBoard item in column 1, row 1 to Kills
      • Multiboard - Set the text for MultiBoard item in column 2, row 1 to (String(Kills[tempint]))
      • Multiboard - Set the width for MultiBoard item in column 1, row 1 to 3.00% of the total screen width
      • Multiboard - Set the width for MultiBoard item in column 2, row 1 to 3.00% of the total screen width
      • Player Group - Pick every player in (All Players) and do (Actions)
        • Loop - Actions
          • Multiboard - Show MultiBoard
  • Kills Detection
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Set udg_tempint=GetConvertedPlayerID(GetLocalPlayer()) //Custom Script
      • Set Kills[(Player number of (Owner of (Attacking Unit)))] = (Kills[[(Player number of (Owner of (Attacking Unit)))] + 1)
      • Multiboard - Set the text for MultiBoard item in column 2, row 1 to (String(Kills[tempint]))
Should work and be 90% leak-free
 
Level 30
Joined
Jan 31, 2010
Messages
3,551
You can create multiple multi boards, but you can't see more than one. Example: you have 2 multi boards, one is with player resources, while the other is with hero info. You can see both of them at the top, but you can open only one, when you attempt to open the other one, the previous will close.
 
Status
Not open for further replies.
Top