• 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.

[Trigger] Multiboard per player problem

Status
Not open for further replies.
Level 4
Joined
May 12, 2008
Messages
49
Hello fellow hivers, I come before you today with a problem.


I have created a few multiboards, but they won't seem to show to the proper player, instead it just shows player one's multiboard to everyone.

I have included the a map with the multiboard triggers, so if you feel helpful, I would be delighted if you would help me :)
 

Attachments

  • Multiboard Problem.w3x
    23.8 KB · Views: 92
Level 37
Joined
Mar 6, 2006
Messages
9,243
This should work, didn't test though:

  • Show Multiboards
    • Events
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player((Integer A))) controller) Equal to User
            • Then - Actions
              • Custom script: if GetLocalPlayer() == Player(bj_forLoopAIndex-1) then
              • Custom script: call MultiboardDisplay(udg_KingdomStatus[bj_forLoopAIndex] , true )
              • Multiboard - Maximize KingdomStatus[(Integer A)]
              • Custom script: endif
            • Else - Actions
      • Trigger - Turn on Food Decrease Copy <gen>
 
Level 4
Joined
May 12, 2008
Messages
49
This should work, didn't test though:

  • Show Multiboards
    • Events
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player((Integer A))) controller) Equal to User
            • Then - Actions
              • Custom script: if GetLocalPlayer() == Player(bj_forLoopAIndex-1) then
              • Custom script: call MultiboardDisplay(udg_KingdomStatus[bj_forLoopAIndex] , true )
              • Multiboard - Maximize KingdomStatus[(Integer A)]
              • Custom script: endif
            • Else - Actions
      • Trigger - Turn on Food Decrease Copy <gen>


Sorry, nope, still only shows player one to everyone
 
Level 13
Joined
Sep 13, 2010
Messages
550
Hello! I disabled "Show Mutiboards" trigger because it doesnt seems to be useful for multiboards. I have edited this:
  • Create Multiboards
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
    • Actions
      • Do Multiple ActionsFor each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • Custom script: if GetLocalPlayer() == Player(bj_forLoopAIndex - 1) then
          • Multiboard - Create a multiboard with 2 columns and 7 rows, titled Kingdom Status
          • Set KingdomStatus[(Integer A)] = (Last created multiboard)
          • Game - Display to (All players) the text: (KingdomStatus + (String((Integer A))))
          • Custom script: endif
    • Trigger - Run Multiboards Init Copy <gen> (checking conditions)
Theres your map below. Im not sure that you can open it. Anyway I think you need some improvements for "Multiboards Init Copy". And use JNGP if you havent used it yet.

Greetings
Geries
 

Attachments

  • Multiboard Problem.w3x
    23.8 KB · Views: 52
Try this:
  • Show Multiboards
  • Events
  • Conditions
  • Actions
    • For each (Integer A) from 1 to 10, do (Actions)
      • Loop - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ((Player((Integer A))) controller) Equal to User
          • Then - Actions
            • Custom script: call MultiboardDisplay(udg_KingdomStatus[bj_forLoopAIndex],false)
            • Custom script: if GetLocalPlayer() == Player(bj_forLoopAIndex-1) then
            • Custom script: call MultiboardDisplay(udg_KingdomStatus[bj_forLoopAIndex],true)
            • Multiboard - Maximize KingdomStatus[(Integer A)]
            • Custom script: endif
          • Else - Actions
    • Trigger - Turn on Food Decrease Copy <gen>
 
Level 4
Joined
May 12, 2008
Messages
49
Try this:
  • Show Multiboards
  • Events
  • Conditions
  • Actions
    • For each (Integer A) from 1 to 10, do (Actions)
      • Loop - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ((Player((Integer A))) controller) Equal to User
          • Then - Actions
            • Custom script: call MultiboardDisplay(udg_KingdomStatus[bj_forLoopAIndex],false)
            • Custom script: if GetLocalPlayer() == Player(bj_forLoopAIndex-1) then
            • Custom script: call MultiboardDisplay(udg_KingdomStatus[bj_forLoopAIndex],true)
            • Multiboard - Maximize KingdomStatus[(Integer A)]
            • Custom script: endif
          • Else - Actions
    • Trigger - Turn on Food Decrease Copy <gen>

Sorry, didn't work. I have tried everything, even downloading the gui triggers for showing a multiboard for just one player

  • Actions
    • Multiboard -Show multiboard for player
from here: at the bottom of the first post.

But that gives me the error
JASS:
Line 268: Expected a function name

call MultiboardDisplayforPlayer( true, udg_Multiboard[1], Player(0) )
 
Status
Not open for further replies.
Top