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!
 

crazyfanatic

New Member
Reaction score
20
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 -
 

Emu.Man00

New Member
Reaction score
41
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.
 

unska

New Member
Reaction score
1
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).
 

UndeadDragon

Super Moderator
Reaction score
447
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.
 

unska

New Member
Reaction score
1
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.
 

crazyfanatic

New Member
Reaction score
20
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.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top