• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] multiboard problem

Status
Not open for further replies.
Level 17
Joined
Aug 19, 2007
Messages
1,380
Hi all,

I want to make 2 multiboards, 1 that is only visible to player 1 and 1 that is only visible to player 3. I have the following triggers, but for some reason when the trigger that creates the multiboard for player 3 runs, the multiboard for player 1 is not visible anymore.

How to fix this?

ps: if I set GameModus variable to 1 the second multiboard will not be created and thus the first one will stay visible as it should. Problem occurs when Create Multiboard player3 runs.

  • Create Multiboard
    • Events
    • Conditions
    • Actions
      • Multiboard - Create a multiboard with 3 columns and 7 rows, titled upgrade data Crawle...
      • Set Multiboard_player1 = (Last created multiboard)
      • -------- ... --------
      • Multiboard - Hide Multiboard_player1
      • Custom script: if GetLocalPlayer() == Player(0) then
      • Multiboard - Show Multiboard_player1
      • Custom script: endif
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • GameModus Equal to 2
              • GameModus Equal to 3
        • Then - Actions
          • Trigger - Run Create Multiboard player3 <gen> (checking conditions)
        • Else - Actions
  • Create Multiboard player3
    • Events
    • Conditions
    • Actions
      • Multiboard - Create a multiboard with 3 columns and 7 rows, titled upgrade data Crawle...
      • Set Multiboard_player3 = (Last created multiboard)
      • -------- ... --------
      • Multiboard - Hide Multiboard_player3
      • Custom script: if GetLocalPlayer() == Player(2) then
      • Multiboard - Show Multiboard_player3
      • Custom script: endif
 
My guess is that when you create a new multiboard, it defaults as shown. Since only 1 multiboard can be displayed at a time, this causes the previous one to be hidden. As such, instead of making separate triggers etc. you should have a multiboard array. Right after you create each one, just hide them.

After all the multiboards are created and whatnot, you can just loop through the multiboard array and display it only for the player who needs to see it.
 
Status
Not open for further replies.
Top