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

[Trigger] Multiborard Problem

Status
Not open for further replies.
Level 12
Joined
Apr 16, 2010
Messages
584
Hello. I have a problem with my multiboard. So here you go:
when player types -multiboard, trigger creates a multiboard for triggering player, but when another player types -multiboard, multiboard of the second players is also shown to 1st player and all others. So who last types -multiboard, multiboard will be shown to all players.
  • M Create
    • Events
      • Player - Player 1 (Red) types a chat message containing -multiboard as An exact match
      • Player - Player 2 (Blue) types a chat message containing -multiboard as An exact match
      • Player - Player 3 (Teal) types a chat message containing -multiboard as An exact match
      • Player - Player 4 (Purple) types a chat message containing -multiboard as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -multiboard as An exact match
      • Player - Player 6 (Orange) types a chat message containing -multiboard as An exact match
      • Player - Player 7 (Green) types a chat message containing -multiboard as An exact match
      • Player - Player 8 (Pink) types a chat message containing -multiboard as An exact match
      • Player - Player 9 (Gray) types a chat message containing -multiboard as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -multiboard as An exact match
      • Player - Player 11 (Dark Green) types a chat message containing -multiboard as An exact match
      • Player - Player 12 (Brown) types a chat message containing -multiboard as An exact match
    • Conditions
    • Actions
      • Multiboard - Create a multiboard with 4 columns and 10 rows, titled Information
      • Set M_Multiboard[(Player number of (Triggering player))] = (Last created multiboard)
      • Multiboard - Set the display style for M_Multiboard[(Player number of (Triggering player))] item in column 0, row 0 to Show text and Hide icons
      • Multiboard - Maximize M_Multiboard[(Player number of (Triggering player))]
      • -------- Settings --------
      • -------- Width --------
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 1, row 1 to 13.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 1, row 2 to 13.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 1, row 3 to 13.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 1, row 4 to 13.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 1, row 5 to 13.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 1, row 6 to 13.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 1, row 7 to 37.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 1, row 8 to 13.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 1, row 9 to 13.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 1, row 10 to 13.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 2, row 1 to 9.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 2, row 2 to 9.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 2, row 3 to 9.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 2, row 4 to 27.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 2, row 5 to 9.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 2, row 6 to 9.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 2, row 7 to 0.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 2, row 8 to 9.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 2, row 9 to 9.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 2, row 10 to 9.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 3, row 1 to 9.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 3, row 2 to 9.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 3, row 3 to 9.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 3, row 4 to 0.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 3, row 5 to 18.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 3, row 6 to 18.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 3, row 7 to 0.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 3, row 8 to 9.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 3, row 9 to 9.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 3, row 10 to 9.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 4, row 1 to 9.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 4, row 2 to 9.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 4, row 3 to 9.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 4, row 4 to 0.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 4, row 5 to 0.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 4, row 6 to 0.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 4, row 7 to 0.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 4, row 8 to 9.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 4, row 9 to 9.00% of the total screen width
      • Multiboard - Set the width for M_Multiboard[(Player number of (Triggering player))] item in column 4, row 10 to 9.00% of the total screen width
      • -------- Text --------
      • Multiboard - Set the text for M_Multiboard[(Player number of (Triggering player))] item in column 1, row 1 to |Cfffed312Name
      • Multiboard - Set the text for M_Multiboard[(Player number of (Triggering player))] item in column 2, row 1 to |Cfffed312Kills
      • Multiboard - Set the text for M_Multiboard[(Player number of (Triggering player))] item in column 3, row 1 to |Cfffed312Deaths
      • Multiboard - Set the text for M_Multiboard[(Player number of (Triggering player))] item in column 1, row 2 to S_Color[(Player number of (Triggering player))]
      • Multiboard - Set the text for M_Multiboard[(Player number of (Triggering player))] item in column 1, row 3 to |Cfffed312Time Play...
      • Multiboard - Set the text for M_Multiboard[(Player number of (Triggering player))] item in column 1, row 4 to |Cfffed312Hero Info...
      • Multiboard - Set the text for M_Multiboard[(Player number of (Triggering player))] item in column 1, row 5 to |c00ff0303Round Inf...
      • Multiboard - Set the text for M_Multiboard[(Player number of (Triggering player))] item in column 1, row 6 to |c00ff0303Teams: |c...
      • Multiboard - Set the text for M_Multiboard[(Player number of (Triggering player))] item in column 2, row 5 to |c00ff0303Round Num...
      • Multiboard - Set the text for M_Multiboard[(Player number of (Triggering player))] item in column 3, row 5 to |c00ff0303Scores (K...
      • Multiboard - Set the text for M_Multiboard[(Player number of (Triggering player))] item in column 1, row 7 to |Cfffed312---------...
      • Multiboard - Set the text for M_Multiboard[(Player number of (Triggering player))] item in column 1, row 8 to |Cfffed312Resources...
      • Multiboard - Set the text for M_Multiboard[(Player number of (Triggering player))] item in column 1, row 9 to |Cfffed312Credit:
      • Multiboard - Set the text for M_Multiboard[(Player number of (Triggering player))] item in column 1, row 10 to |Cfffed312Time:
      • Multiboard - Set the text for M_Multiboard[(Player number of (Triggering player))] item in column 2, row 8 to ((|c00fffc01( + (String(BS_Account_Gold[(Player number of (Triggering player))]))) + () |c0020c000( + ((String(BS_Account_Lumber[(Player number of (Triggering player))])) + ))))
      • Multiboard - Set the text for M_Multiboard[(Player number of (Triggering player))] item in column 2, row 9 to ((|c00fffc01 + ((String(BS_Credit_Gold[(Player number of (Triggering player))])) + |r )) + ((|c0020c000 + (String(BS_Credit_Lumber[(Player number of (Triggering player))]))) + |r))
      • Multiboard - Set the text for M_Multiboard[(Player number of (Triggering player))] item in column 2, row 10 to ((|c00fffc01 + ((String((Remaining time for BS_Credit_Timer_Gold[(Player number of (Triggering player))]))) + |r )) + ((|c0020c000 + (String((Remaining time for BS_Credit_Timer_Lumber[(Player number of (Triggering player))])))) + |r))
      • -------- Show --------
      • Multiboard - Minimize M_Multiboard[(Player number of (Triggering player))]
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Multiboard - Hide BS_Multiboard[(Integer A)]
      • Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
      • Multiboard - Show BS_Multiboard[(Player number of (Triggering player))]
      • Custom script: endif
+rep to helper, but next day because i'll test it tomorrow.
 
Level 20
Joined
Feb 24, 2009
Messages
2,999
Someone might correct me on this, but I'm pretty sure Multi-boards are MPI, they have to be shown to all players, leader-boards can be shown to a player individually.

The best you can do with multi-boards is just minimize it, but obviously if you desperately want to keep whatever is on the multiboard away from certain players... =/
 
Level 15
Joined
Oct 16, 2010
Messages
941
  • For each (Integer A) from 1 to 12, do (Actions)
    • Loop - Actions
    • Multiboard - Hide BS_Multiboard[(Integer A)]
    • Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
    • Multiboard - Show BS_Multiboard[(Player number of (Triggering player))]
    • Custom script: endif
Why are you refferring to a different multiboard variable in these statements?

Hope thats your prob, GL!
 
Someone might correct me on this, but I'm pretty sure Multi-boards are MPI, they have to be shown to all players, leader-boards can be shown to a player individually.

The best you can do with multi-boards is just minimize it, but obviously if you desperately want to keep whatever is on the multiboard away from certain players... =/

I think you can show it to individuals through JASS.
 
Level 21
Joined
Mar 19, 2009
Messages
444
1-A leaderboard can not be displayed/hidden for local players. You still can hide/display it; but only for all players at the same time.

2-A multiboard can be displayed/hidden for local players. But if you want to get different boards for different players, you need to create several multiboards. Only the display of a multiboard can be set to a local player; its creation / modification is not local. (So warn with desync). This means if you get 10 players and you wants each player to be able to get it's own custom multiboard, you need to create 10 multiboards and hide for each player the other 9 multiboards.
 
Level 21
Joined
Mar 19, 2009
Messages
444
It's not so complicated: just make a multiboard array variable; then, to refer to a specific multiboard, use the player id; when a cell must be changed for all players, use a loop.

Ps: the only thing you had to know in Jass is to use a custom script to display a specific board to a specific player. (If GetLocalPlayer() == blabla, then )
 
Status
Not open for further replies.
Top