Multiboard Row's Question

anvio

New Member
Reaction score
1
Quick Note:
After searching through about 15+ posts; and possibly working on this for about 2+ hours I pretty much give up lol...

Alright now that I blasted out some random rantings onto the real problem. I have been using a simple multiboard that took me about 10 minutes or so to make; and I have decided to expand on it because I added AceHarts Save/Load system to my map. I'm saving two variables one of them is an integer array that is named "totalLevel"; and the other one is also an integer array that is named "totalDeaths". My map is a Mazing map like Area of Ice Escape; and what the totalLevel variable does is records every time a player beats a level and sets it in, and the totalDeaths variable records every time a player dies to a unit/snow/or anything else. Now this is where the multiboard comes in, I have the multiboard all set up but all I want to do is remove a picked row from it when a player leaves/or gets kicked; I would love to have this work because having a multiboard with 15 rows gets pretty annoying when playing a maze. Anyway I figured out a decent system that works partially but bugs after removing 4+ rows... this is the trigger.

Triggers:
Trigger:
  • MultiBoardFix
    • Events
    • Conditions
    • Actions
      • Multiboard - Change the number of rows for multiboard to (14 - PLAYERSLEFT)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • LEAVER Less than 5
          • (Player 2 (Blue) slot status) Equal to Is playing
        • Then - Actions
          • Multiboard - Set the text for multiboard item in column 1, row (5 - PLAYERSLEFT) to (|c000000ff + Blue)
          • Multiboard - Set the text for multiboard item in column 2, row (5 - PLAYERSLEFT) to (( + (String(totalLevel[2]))) + |r)
          • Multiboard - Set the text for multiboard item in column 3, row (5 - PLAYERSLEFT) to (( + (String(totalDeaths[2]))) + |r)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • LEAVER Less than 6
          • (Player 3 (Teal) slot status) Equal to Is playing
        • Then - Actions
          • Multiboard - Set the text for multiboard item in column 1, row (6 - PLAYERSLEFT) to (|c0000ffff + Teal)
          • Multiboard - Set the text for multiboard item in column 2, row (6 - PLAYERSLEFT) to (( + (String(totalLevel[3]))) + |r)
          • Multiboard - Set the text for multiboard item in column 3, row (6 - PLAYERSLEFT) to (( + (String(totalDeaths[3]))) + |r)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • LEAVER Less than 7
          • (Player 4 (Purple) slot status) Equal to Is playing
        • Then - Actions
          • Multiboard - Set the text for multiboard item in column 1, row (7 - PLAYERSLEFT) to (|c008000ff + Purple)
          • Multiboard - Set the text for multiboard item in column 2, row (7 - PLAYERSLEFT) to (( + (String(totalLevel[4]))) + |r)
          • Multiboard - Set the text for multiboard item in column 3, row (7 - PLAYERSLEFT) to (( + (String(totalDeaths[4]))) + |r)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • LEAVER Less than 8
          • (Player 5 (Yellow) slot status) Equal to Is playing
        • Then - Actions
          • Multiboard - Set the text for multiboard item in column 1, row (8 - PLAYERSLEFT) to (|c00ffff00 + Yellow)
          • Multiboard - Set the text for multiboard item in column 2, row (8 - PLAYERSLEFT) to (( + (String(totalLevel[5]))) + |r)
          • Multiboard - Set the text for multiboard item in column 3, row (8 - PLAYERSLEFT) to (( + (String(totalDeaths[5]))) + |r)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • LEAVER Less than 9
          • (Player 6 (Orange) slot status) Equal to Is playing
        • Then - Actions
          • Multiboard - Set the text for multiboard item in column 1, row (9 - PLAYERSLEFT) to (|c00ff8040 + Orange)
          • Multiboard - Set the text for multiboard item in column 2, row (9 - PLAYERSLEFT) to (( + (String(totalLevel[6]))) + |r)
          • Multiboard - Set the text for multiboard item in column 3, row (9 - PLAYERSLEFT) to (( + (String(totalDeaths[6]))) + |r)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • LEAVER Less than 10
          • (Player 7 (Green) slot status) Equal to Is playing
        • Then - Actions
          • Multiboard - Set the text for multiboard item in column 1, row (10 - PLAYERSLEFT) to (|c0000ff00 + Green)
          • Multiboard - Set the text for multiboard item in column 2, row (10 - PLAYERSLEFT) to (( + (String(totalLevel[7]))) + |r)
          • Multiboard - Set the text for multiboard item in column 3, row (10 - PLAYERSLEFT) to (( + (String(totalDeaths[7]))) + |r)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • LEAVER Less than 11
          • (Player 8 (Pink) slot status) Equal to Is playing
        • Then - Actions
          • Multiboard - Set the text for multiboard item in column 1, row (11 - PLAYERSLEFT) to (|c00ff00ff + Pink)
          • Multiboard - Set the text for multiboard item in column 2, row (11 - PLAYERSLEFT) to (( + (String(totalLevel[8]))) + |r)
          • Multiboard - Set the text for multiboard item in column 3, row (11 - PLAYERSLEFT) to (( + (String(totalDeaths[8]))) + |r)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • LEAVER Less than 12
          • (Player 9 (Gray) slot status) Equal to Is playing
        • Then - Actions
          • Multiboard - Set the text for multiboard item in column 1, row (12 - PLAYERSLEFT) to (|c00c0c0c0 + Gray)
          • Multiboard - Set the text for multiboard item in column 2, row (12 - PLAYERSLEFT) to (( + (String(totalLevel[9]))) + |r)
          • Multiboard - Set the text for multiboard item in column 3, row (12 - PLAYERSLEFT) to (( + (String(totalDeaths[9]))) + |r)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • LEAVER Less than 13
          • (Player 10 (Light Blue) slot status) Equal to Is playing
        • Then - Actions
          • Multiboard - Set the text for multiboard item in column 1, row (13 - PLAYERSLEFT) to (|c0000aaff + Light Blue)
          • Multiboard - Set the text for multiboard item in column 2, row (13 - PLAYERSLEFT) to (( + (String(totalLevel[10]))) + |r)
          • Multiboard - Set the text for multiboard item in column 3, row (13 - PLAYERSLEFT) to (( + (String(totalDeaths[10]))) + |r)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • LEAVER Less than 14
          • (Player 11 (Dark Green) slot status) Equal to Is playing
        • Then - Actions
          • Multiboard - Set the text for multiboard item in column 1, row (14 - PLAYERSLEFT) to (|c00008000 + Dark Green)
          • Multiboard - Set the text for multiboard item in column 2, row (14 - PLAYERSLEFT) to (( + (String(totalLevel[11]))) + |r)
          • Multiboard - Set the text for multiboard item in column 3, row (14 - PLAYERSLEFT) to (( + (String(totalDeaths[11]))) + |r)
        • Else - Actions


This is the multiboard trigger that is updated with the trigger from above.

Trigger:
  • MultiBoard
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
    • Actions
      • Multiboard - Show (Last created multiboard)
      • Multiboard - Create a multiboard with 3 columns and 14 rows, titled |c0000ffffArea of I...
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 1 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 1 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 1 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 2 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 2 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 2 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 3 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 3 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 3 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 4 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 4 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 4 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 5 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 5 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 5 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 6 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 6 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 6 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 7 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 7 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 7 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 8 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 8 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 8 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 9 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 9 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 9 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 10 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 10 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 10 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 11 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 11 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 11 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 12 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 12 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 12 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 13 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 13 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 13 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 14 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 14 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 3, row 14 to 8.00% of the total screen width
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to |c00ffff00Highest P...
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to |c00ffff00Current...
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to |c00ffff00Time Pl...
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to ( + Tied)
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to ( + (String(Level)))
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 2 to ( + ((hourstring + : ) + ((minutestring + : ) + secondstring)))
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 3 to |c00ffff00Player C...
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 3 to |c00ffff00Levels...
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 3 to |c00ffff00Total D...
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 4 to (|c00ff0000 + Red)
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 4 to (( + (String(totalLevel[1]))) + |r)
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 4 to (( + (String(totalDeaths[1]))) + |r)
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 5 to (|c000000ff + Blue)
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 5 to (( + (String(totalLevel[2]))) + |r)
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 5 to (( + (String(totalDeaths[2]))) + |r)
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 6 to (|c0000ffff + Teal)
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 6 to (( + (String(totalLevel[3]))) + |r)
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 6 to (( + (String(totalDeaths[3]))) + |r)
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 7 to (|c008000ff + Purple)
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 7 to (( + (String(totalLevel[4]))) + |r)
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 7 to (( + (String(totalDeaths[4]))) + |r)
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 8 to (|c00ffff00 + Yellow)
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 8 to (( + (String(totalLevel[5]))) + |r)
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 8 to (( + (String(totalDeaths[5]))) + |r)
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 9 to (|c00ff8040 + Orange)
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 9 to (( + (String(totalLevel[6]))) + |r)
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 9 to (( + (String(totalDeaths[6]))) + |r)
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 10 to (|c0000ff00 + Green)
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 10 to (( + (String(totalLevel[7]))) + |r)
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 10 to (( + (String(totalDeaths[7]))) + |r)
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 11 to (|c00ff00ff + Pink)
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 11 to (( + (String(totalLevel[8]))) + |r)
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 11 to (( + (String(totalDeaths[8]))) + |r)
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 12 to (|c00c0c0c0 + Gray)
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 12 to (( + (String(totalLevel[9]))) + |r)
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 12 to (( + (String(totalDeaths[9]))) + |r)
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 13 to (|c0000aaff + Light Blue)
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 13 to (( + (String(totalLevel[10]))) + |r)
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 13 to (( + (String(totalDeaths[10]))) + |r)
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 14 to (|c00008000 + Dark Green)
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 14 to (( + (String(totalLevel[11]))) + |r)
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 14 to (( + (String(totalDeaths[11]))) + |r)
      • Multiboard - Set the display style for (Last created multiboard) item in column 0, row 0 to Show text and Hide icons
      • Multiboard - Maximize (Last created multiboard)
      • Multiboard - Minimize (Last created multiboard)
      • Set multiboard = (Last created multiboard)


And this is the trigger that I'm using to kick players and update the LEAVER and PLAYERSLEFT variable.

Trigger:
  • KickBlue
    • Events
      • Player - Player 1 (Red) types a chat message containing -kick blue as An exact match
    • Conditions
      • (Name of Player 2 (Blue)) Not equal to Anvio
      • (Name of Player 2 (Blue)) Not equal to Bob33
      • (Player 2 (Blue) slot status) Equal to Is playing
    • Actions
      • Set LEAVER = 5 - "5 = 5TH ROW ON THE MULTIBOARD"
      • Set PLAYERSLEFT = (PLAYERSLEFT + 1)
      • Trigger - Run MultiBoardFix <gen> (checking conditions)
      • Game - Defeat Player 2 (Blue) with the message: You Have Been Kicke...
      • Game - Display to (All players) for 10.00 seconds the text:
      • Game - Display to (All players) for 10.00 seconds the text: ((|c000000ff + (Name of Player 2 (Blue))) + |r |c00ffff00has just been kicked!|r)
      • Game - Display to (All players) for 10.00 seconds the text:
      • Game - Grant shared vision and full shared unit control of Player 2 (Blue) units with his/her allies
      • Multiboard - Show multiboard
      • Custom script: call DestroyTrigger( GetTriggeringTrigger() )


Final Note:
In the end all I'm getting at is that I need to figure out how to fix up my system or I need to find something else that is able to remove a row from my multiboard while tracking which row has been moved where; Example: I kick Blue then all the players under Teal move up on the multiboard while removing the last row; and at the same time moving the levels and death variables up a row also in the process.

Heres a Picture of the Multiboard:

random.jpg


Extra Note:
If you guys didn't get I was going at; which is most likely going to happen lol... just download the map I attached and you can see for yourself what I mean; I kinda recommend this instead of reading the giant wall of text rofl.

1) Play Map
2) Kick a color EX: -kick purple

My system works most of the time; such as if you kick from the color Blue to the color Dark Green; but if you skip around from like Light Blue to Orange and so on thats where it starts bugging and updating the wrong rows.

I'm sure the 20 minutes I spent making this post has like a 1 minute answer that I didn't come close to thinking of; also I know this multiboard issue is not even that important, but it just irritates the heck outta me for not being able to figure it out lol.

Thanks ahead of time for anyone that is willling to help.

PS: Sorry for the wall of text... ;)

Anvio :)
 

Attachments

  • MultiboardTest.w3x
    33.6 KB · Views: 335

anvio

New Member
Reaction score
1
Hah if this only was a resource...

But seriously to be clear this is just a question because this bugs when you kick a player in a different order then "Blue","Teal","Purple" and so on...

Lol this could be a resource if I just get that single updating problem fixed because I don't think I was able to find another post on how to remove a picked row from a multiboard during a game; without making a completely new multiboard. "Unless i'm just blind :eek:".

Anvio :)
 
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