Logic problem with a multiboard

unska

New Member
Reaction score
1
Hey, I'm having a logical problem with my multiboard. It works if all the users are in exact order

Red
Blue
Teal
Purple

etc. but if the users skip one spot for example like this:

Red
Blue
Purple

The multiboard lists everyone but the updater thinks that the third player is not playing and change it to "Defeated"

Here's the code:

multiboard.png


If it was PHP I would add all the players and their IDs to an array and then assign a certain row of the multiplayer to them but I have no idea how to do this or something to fix the problem in the world editor.

Thanks for your help!
 
Make a different trigger:

Trigger:
  • leaver
    • Events
      • Player - <generic player> leaves the game with a defeat
      • Player - <generic player> leaves the game
    • Conditions
    • Actions
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row (Integer A) to Defeated
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row (Integer A) to -
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row (Integer A) to -
 
You'd have to set the multiboard to a variable, and use player number of triggering player instead of Integer A, in fanatic's trigger.
 
Is the "generic player" an option on the editor or does it mean I have to make a trigger for every player?

And I still don't know how this would work. Let's say I have

Red (1)
Blue(2)
Pink(8)

There will be four rows on the multiboard

(1) Player, Income, Lives
(2) Random1, 40, 30
(3) Random2, 60, 43
(4) Random3, 55, 42

So if Pink quits it will try to remove column 8 from the multiboard (if I've understood everything correctly).
 
Do you want it to display Defeated, or do you want it to just remove the column, I am unsure. If you want it to display Defeated, that's what crazyfanatic's trigger will do, but only if the player leaves during the game, to display Defeated to all players that aren't playing you would need something that runs when the multiboard is created, which checks if player A is playing, then if they aren't change their multiboard value.
 
I don't understand the crazyfanatics example;

a) What is "generic player" do I have to make a trigger for all players are is the "generic player" an option on the code?
b) How the code knows on what row the quitters name is? crazyfanatic's example says "Integer A" for the row but as far as I see, the Integer A is null on the example.
 
Here is how I made a multiboard, maybe u can use it somehow:

Trigger:
  • multiboard rows player settings
    • Events
      • Map initialization
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) slot status) Equal to Is playing
        • Then - Actions
          • Set row[1] = 1
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) slot status) Equal to Is playing
          • (Player 2 (Blue) slot status) Equal to Is playing
        • Then - Actions
          • Set row[2] = 2
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) slot status) Equal to Is playing
          • (Player 2 (Blue) slot status) Not equal to Is playing
          • (Player 3 (Teal) slot status) Equal to Is playing
        • Then - Actions
          • Set row[3] = 2
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) slot status) Equal to Is playing
          • (Player 2 (Blue) slot status) Not equal to Is playing
          • (Player 3 (Teal) slot status) Not equal to Is playing
          • (Player 4 (Purple) slot status) Equal to Is playing
        • Then - Actions
          • Set row[4] = 2
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) slot status) Equal to Is playing
          • (Player 2 (Blue) slot status) Not equal to Is playing
          • (Player 3 (Teal) slot status) Not equal to Is playing
          • (Player 4 (Purple) slot status) Not equal to Is playing
          • (Player 5 (Yellow) slot status) Equal to Is playing
        • Then - Actions
          • Set row[5] = 2
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) slot status) Equal to Is playing
          • (Player 2 (Blue) slot status) Equal to Is playing
          • (Player 3 (Teal) slot status) Equal to Is playing
        • Then - Actions
          • Set row[3] = 3
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) slot status) Equal to Is playing
          • (Player 2 (Blue) slot status) Equal to Is playing
          • (Player 3 (Teal) slot status) Not equal to Is playing
          • (Player 4 (Purple) slot status) Equal to Is playing
        • Then - Actions
          • Set row[4] = 3
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) slot status) Equal to Is playing
          • (Player 2 (Blue) slot status) Not equal to Is playing
          • (Player 3 (Teal) slot status) Equal to Is playing
          • (Player 4 (Purple) slot status) Equal to Is playing
        • Then - Actions
          • Set row[4] = 3
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) slot status) Equal to Is playing
          • (Player 2 (Blue) slot status) Not equal to Is playing
          • (Player 3 (Teal) slot status) Not equal to Is playing
          • (Player 4 (Purple) slot status) Equal to Is playing
          • (Player 5 (Yellow) slot status) Equal to Is playing
        • Then - Actions
          • Set row[5] = 3
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) slot status) Equal to Is playing
          • (Player 2 (Blue) slot status) Not equal to Is playing
          • (Player 3 (Teal) slot status) Equal to Is playing
          • (Player 4 (Purple) slot status) Not equal to Is playing
          • (Player 5 (Yellow) slot status) Equal to Is playing
        • Then - Actions
          • Set row[5] = 3
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) slot status) Equal to Is playing
          • (Player 2 (Blue) slot status) Equal to Is playing
          • (Player 3 (Teal) slot status) Not equal to Is playing
          • (Player 4 (Purple) slot status) Not equal to Is playing
          • (Player 5 (Yellow) slot status) Equal to Is playing
        • Then - Actions
          • Set row[5] = 3
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) slot status) Equal to Is playing
          • (Player 2 (Blue) slot status) Equal to Is playing
          • (Player 3 (Teal) slot status) Equal to Is playing
          • (Player 4 (Purple) slot status) Equal to Is playing
        • Then - Actions
          • Set row[4] = 4
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) slot status) Equal to Is playing
          • (Player 2 (Blue) slot status) Equal to Is playing
          • (Player 3 (Teal) slot status) Equal to Is playing
          • (Player 4 (Purple) slot status) Not equal to Is playing
          • (Player 5 (Yellow) slot status) Equal to Is playing
        • Then - Actions
          • Set row[5] = 4
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) slot status) Equal to Is playing
          • (Player 2 (Blue) slot status) Equal to Is playing
          • (Player 3 (Teal) slot status) Not equal to Is playing
          • (Player 4 (Purple) slot status) Equal to Is playing
          • (Player 5 (Yellow) slot status) Equal to Is playing
        • Then - Actions
          • Set row[5] = 4
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) slot status) Equal to Is playing
          • (Player 2 (Blue) slot status) Not equal to Is playing
          • (Player 3 (Teal) slot status) Equal to Is playing
          • (Player 4 (Purple) slot status) Equal to Is playing
          • (Player 5 (Yellow) slot status) Equal to Is playing
        • Then - Actions
          • Set row[5] = 4
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) slot status) Not equal to Is playing
          • (Player 2 (Blue) slot status) Equal to Is playing
          • (Player 3 (Teal) slot status) Equal to Is playing
          • (Player 4 (Purple) slot status) Equal to Is playing
          • (Player 5 (Yellow) slot status) Equal to Is playing
        • Then - Actions
          • Set row[5] = 5
        • Else - Actions


Trigger:
  • multispawn
    • Events
      • Dialog - A dialog button is clicked for adialog
    • Conditions
    • Actions
      • Multiboard - Create a multiboard with 4 columns and (playercount + 1) rows, titled Player results
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 1 to 10.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 4, row 1 to 9.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 4, row 2 to 9.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 4, row 3 to 9.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 1 to 4.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 2 to 4.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 3 to 4.00% of the total screen width
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 1 to Show text and Hide icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 2, row 1 to Show text and Hide icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 3, row 1 to Show text and Hide icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 4, row 1 to Show text and Hide icons
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 2 to 10.00% of the total screen width
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 2 to Show text and Hide icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 2, row 2 to Show text and Hide icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 3, row 2 to Show text and Hide icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 4, row 2 to Show text and Hide icons
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 3 to 10.00% of the total screen width
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 3 to Show text and Hide icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 2, row 3 to Show text and Hide icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 3, row 3 to Show text and Hide icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 4, row 3 to Show text and Hide icons
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • playercount Greater than or equal to 3
        • Then - Actions
          • Multiboard - Set the width for (Last created multiboard) item in column 1, row 4 to 10.00% of the total screen width
          • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 4 to Show text and Hide icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 2, row 4 to Show text and Hide icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 3, row 4 to Show text and Hide icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 4, row 4 to Show text and Hide icons
          • Multiboard - Set the width for (Last created multiboard) item in column 4, row 4 to 9.00% of the total screen width
          • Multiboard - Set the width for (Last created multiboard) item in column 3, row 4 to 4.00% of the total screen width
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • playercount Greater than or equal to 4
        • Then - Actions
          • Multiboard - Set the width for (Last created multiboard) item in column 1, row 5 to 10.00% of the total screen width
          • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 5 to Show text and Hide icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 2, row 5 to Show text and Hide icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 3, row 5 to Show text and Hide icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 4, row 5 to Show text and Hide icons
          • Multiboard - Set the width for (Last created multiboard) item in column 4, row 5 to 9.00% of the total screen width
          • Multiboard - Set the width for (Last created multiboard) item in column 3, row 5 to 4.00% of the total screen width
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • playercount Greater than or equal to 5
        • Then - Actions
          • Multiboard - Set the width for (Last created multiboard) item in column 1, row 6 to 10.00% of the total screen width
          • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 6 to Show text and Hide icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 2, row 6 to Show text and Hide icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 3, row 6 to Show text and Hide icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 4, row 6 to Show text and Hide icons
          • Multiboard - Set the width for (Last created multiboard) item in column 4, row 6 to 9.00% of the total screen width
          • Multiboard - Set the width for (Last created multiboard) item in column 3, row 6 to 4.00% of the total screen width
        • Else - Actions
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Player name:
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to Kills:
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to Deaths:
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 1 to Availablility:
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) slot status) Equal to Is playing
        • Then - Actions
          • Multiboard - Set the text for (Last created multiboard) item in column 1, row (row[1] + 1) to (colour[1] + (Name of Player 1 (Red)))
          • Multiboard - Set the text for (Last created multiboard) item in column 4, row (row[1] + 1) to here
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row (row[1] + 1) to 0
          • Multiboard - Set the text for (Last created multiboard) item in column 3, row (row[1] + 1) to 0
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 2 (Blue) slot status) Equal to Is playing
        • Then - Actions
          • Multiboard - Set the text for (Last created multiboard) item in column 1, row (row[2] + 1) to (colour[2] + (Name of Player 2 (Blue)))
          • Multiboard - Set the text for (Last created multiboard) item in column 4, row (row[2] + 1) to here
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row (row[2] + 1) to 0
          • Multiboard - Set the text for (Last created multiboard) item in column 3, row (row[2] + 1) to 0
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 3 (Teal) slot status) Equal to Is playing
        • Then - Actions
          • Multiboard - Set the text for (Last created multiboard) item in column 1, row (row[1] + 1) to (colour[3] + (Name of Player 3 (Teal)))
          • Multiboard - Set the text for (Last created multiboard) item in column 4, row (row[3] + 1) to here
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row (row[3] + 1) to 0
          • Multiboard - Set the text for (Last created multiboard) item in column 3, row (row[3] + 1) to 0
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 4 (Purple) slot status) Equal to Is playing
        • Then - Actions
          • Multiboard - Set the text for (Last created multiboard) item in column 1, row (row[4] + 1) to (colour[4] + (Name of Player 4 (Purple)))
          • Multiboard - Set the text for (Last created multiboard) item in column 4, row (row[4] + 1) to here
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row (row[4] + 1) to 0
          • Multiboard - Set the text for (Last created multiboard) item in column 3, row (row[4] + 1) to 0
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 5 (Yellow) slot status) Equal to Is playing
        • Then - Actions
          • Multiboard - Set the text for (Last created multiboard) item in column 1, row (row[5] + 1) to (colour[5] + (Name of Player 5 (Yellow)))
          • Multiboard - Set the text for (Last created multiboard) item in column 4, row (row[5] + 1) to here
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row (row[5] + 1) to 0
          • Multiboard - Set the text for (Last created multiboard) item in column 3, row (row[5] + 1) to 0
        • Else - Actions




P.S. Good luck with the understanding and variables
P.S.2 Good luck with editing, coz the triggers are for 5 players
P.S.3 Its really more simple than it seems
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top