• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Multiboard problem

Status
Not open for further replies.
I was nearly done completing this system but then then when I tested it the multiboard part where I set the width wasn't working. Here it is:
  • startmultiboard
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • -------- Set the units below --------
      • Set playersunit[1] = Paladin 0000 <gen>
      • Set playersunit[2] = Blademaster 0022 <gen>
      • -------- Set this variable jsut below as the value of the highest array in this trigger. For example, if the highest array is pants[90] then we set this as 90 --------
      • Set highestvalue = 3
      • -------- -------------------------------- --------
      • Set helmet[0] = helmet 0
      • Set helmet[1] = helmet 1
      • Set helmet[2] = helmet 2
      • Set helmet[3] = helmet 3
      • Set helmetamount = 3
      • Set helmetbuff[0] = Item Hero Stat Bonus (+2 All Stats)
      • Set helmetbuff[1] = Item Hero Stat Bonus (+10 Agility)
      • Set helmetbuff[2] = Item Hero Stat Bonus (+1 Strength)
      • Set helmetbuff[3] = Item Hero Stat Bonus (+1 Intelligence)
      • -------- -------------------------------- --------
      • Set pants[0] = Claws of Attack +15
      • Set pants[1] = Claws of Attack +15
      • Set pants[2] = Claws of Attack +15
      • Set pants[3] = Claws of Attack +15
      • Set pantsamount = 3
      • Set pantsbuff[0] = Item Hero Stat Bonus (+2 All Stats)
      • Set pantsbuff[1] = Item Hero Stat Bonus (+2 All Stats)
      • Set pantsbuff[2] = Item Hero Stat Bonus (+2 All Stats)
      • Set pantsbuff[3] = Item Hero Stat Bonus (+2 All Stats)
      • -------- -------------------------------- --------
      • Set shield[0] = Claws of Attack +15
      • Set shield[1] = Claws of Attack +15
      • Set shield[2] = Claws of Attack +15
      • Set shield[3] = Claws of Attack +15
      • Set shieldamount = 3
      • Set shieldbuff[0] = Item Hero Stat Bonus (+2 All Stats)
      • Set shieldbuff[1] = Item Hero Stat Bonus (+2 All Stats)
      • Set shieldbuff[2] = Item Hero Stat Bonus (+2 All Stats)
      • Set shieldbuff[3] = Item Hero Stat Bonus (+2 All Stats)
      • -------- -------------------------------- --------
      • Set shirt[0] = Claws of Attack +15
      • Set shirt[1] = Claws of Attack +15
      • Set shirt[2] = Claws of Attack +15
      • Set shirt[3] = Claws of Attack +15
      • Set shirtamount = 3
      • Set shirtbuff[0] = Item Hero Stat Bonus (+2 All Stats)
      • Set shirtbuff[1] = Item Hero Stat Bonus (+2 All Stats)
      • Set shirtbuff[2] = Item Hero Stat Bonus (+2 All Stats)
      • Set shirtbuff[3] = Item Hero Stat Bonus (+2 All Stats)
      • -------- -------------------------------- --------
      • Set sword[0] = Claws of Attack +15
      • Set sword[1] = Claws of Attack +15
      • Set sword[2] = Claws of Attack +15
      • Set sword[3] = Claws of Attack +15
      • Set swordamount = 3
      • Set swordbuff[0] = Item Hero Stat Bonus (+2 All Stats)
      • Set swordbuff[1] = Item Hero Stat Bonus (+2 All Stats)
      • Set swordbuff[2] = Item Hero Stat Bonus (+2 All Stats)
      • Set swordbuff[3] = Item Hero Stat Bonus (+2 All Stats)
      • -------- selfexplanatory and used to make the system more easy to use incase you would like to add another equipment type --------
      • Set equipmenttypes[13] = 5
      • -------- leave these ones below --------
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked player) controller) Equal to User
            • Then - Actions
              • Multiboard - Set the width for playersmultiboard[(Player number of (Picked player))] item in column 1, row 1 to 100.00% of the total screen width
              • Multiboard - Set the width for playersmultiboard[(Player number of (Picked player))] item in column 1, row 2 to 100.00% of the total screen width
              • Multiboard - Set the width for playersmultiboard[(Player number of (Picked player))] item in column 1, row 3 to 100.00% of the total screen width
              • Multiboard - Set the width for playersmultiboard[(Player number of (Picked player))] item in column 1, row 4 to 100.00% of the total screen width
              • Multiboard - Set the width for playersmultiboard[(Player number of (Picked player))] item in column 1, row 5 to 100.00% of the total screen width
              • Multiboard - Set the width for playersmultiboard[(Player number of (Picked player))] item in column 2, row 1 to 100.00% of the total screen width
              • Multiboard - Set the width for playersmultiboard[(Player number of (Picked player))] item in column 2, row 2 to 100.00% of the total screen width
              • Multiboard - Set the width for playersmultiboard[(Player number of (Picked player))] item in column 2, row 3 to 100.00% of the total screen width
              • Multiboard - Set the width for playersmultiboard[(Player number of (Picked player))] item in column 2, row 4 to 100.00% of the total screen width
              • Multiboard - Set the width for playersmultiboard[(Player number of (Picked player))] item in column 2, row 5 to 100.00% of the total screen width
              • Multiboard - Show all multiboards
              • Trigger - Add to retrieve item <gen> the event (Player - (Picked player) Presses the Right Arrow key)
              • Trigger - Add to multiboardup <gen> the event (Player - (Picked player) Presses the Up Arrow key)
              • Trigger - Add to multiboarddown <gen> the event (Player - (Picked player) Presses the Down Arrow key)
              • Trigger - Add to toggle and untoggle multiboard <gen> the event (Player - (Picked player) types a chat message containing -toggle multiboard as An exact match)
              • Trigger - Add to playertypes <gen> the event (Player - (Picked player) types a chat message containing -equip as A substring)
              • Multiboard - Create a multiboard with 2 columns and equipmenttypes[13] rows, titled ((Name of (Picked player)) + 's Inventory)
              • Set playersmultiboard[(Player number of (Picked player))] = (Last created multiboard)
            • Else - Actions
So did my WE screw up or am I just an idiot?
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
Why are these at the very bottom of the loop:
  • Multiboard - Create a multiboard with 2 columns and equipmenttypes[13] rows, titled ((Name of (Picked player)) + 's Inventory)
  • Set playersmultiboard[(Player number of (Picked player))] = (Last created multiboard)
Try this:

  • startmultiboard
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • -------- Set the units below --------
      • Set playersunit[1] = Paladin 0000 <gen>
      • Set playersunit[2] = Blademaster 0022 <gen>
      • -------- Set this variable jsut below as the value of the highest array in this trigger. For example, if the highest array is pants[90] then we set this as 90 --------
      • Set highestvalue = 3
      • -------- -------------------------------- --------
      • Set helmet[0] = helmet 0
      • Set helmet[1] = helmet 1
      • Set helmet[2] = helmet 2
      • Set helmet[3] = helmet 3
      • Set helmetamount = 3
      • Set helmetbuff[0] = Item Hero Stat Bonus (+2 All Stats)
      • Set helmetbuff[1] = Item Hero Stat Bonus (+10 Agility)
      • Set helmetbuff[2] = Item Hero Stat Bonus (+1 Strength)
      • Set helmetbuff[3] = Item Hero Stat Bonus (+1 Intelligence)
      • -------- -------------------------------- --------
      • Set pants[0] = Claws of Attack +15
      • Set pants[1] = Claws of Attack +15
      • Set pants[2] = Claws of Attack +15
      • Set pants[3] = Claws of Attack +15
      • Set pantsamount = 3
      • Set pantsbuff[0] = Item Hero Stat Bonus (+2 All Stats)
      • Set pantsbuff[1] = Item Hero Stat Bonus (+2 All Stats)
      • Set pantsbuff[2] = Item Hero Stat Bonus (+2 All Stats)
      • Set pantsbuff[3] = Item Hero Stat Bonus (+2 All Stats)
      • -------- -------------------------------- --------
      • Set shield[0] = Claws of Attack +15
      • Set shield[1] = Claws of Attack +15
      • Set shield[2] = Claws of Attack +15
      • Set shield[3] = Claws of Attack +15
      • Set shieldamount = 3
      • Set shieldbuff[0] = Item Hero Stat Bonus (+2 All Stats)
      • Set shieldbuff[1] = Item Hero Stat Bonus (+2 All Stats)
      • Set shieldbuff[2] = Item Hero Stat Bonus (+2 All Stats)
      • Set shieldbuff[3] = Item Hero Stat Bonus (+2 All Stats)
      • -------- -------------------------------- --------
      • Set shirt[0] = Claws of Attack +15
      • Set shirt[1] = Claws of Attack +15
      • Set shirt[2] = Claws of Attack +15
      • Set shirt[3] = Claws of Attack +15
      • Set shirtamount = 3
      • Set shirtbuff[0] = Item Hero Stat Bonus (+2 All Stats)
      • Set shirtbuff[1] = Item Hero Stat Bonus (+2 All Stats)
      • Set shirtbuff[2] = Item Hero Stat Bonus (+2 All Stats)
      • Set shirtbuff[3] = Item Hero Stat Bonus (+2 All Stats)
      • -------- -------------------------------- --------
      • Set sword[0] = Claws of Attack +15
      • Set sword[1] = Claws of Attack +15
      • Set sword[2] = Claws of Attack +15
      • Set sword[3] = Claws of Attack +15
      • Set swordamount = 3
      • Set swordbuff[0] = Item Hero Stat Bonus (+2 All Stats)
      • Set swordbuff[1] = Item Hero Stat Bonus (+2 All Stats)
      • Set swordbuff[2] = Item Hero Stat Bonus (+2 All Stats)
      • Set swordbuff[3] = Item Hero Stat Bonus (+2 All Stats)
      • -------- selfexplanatory and used to make the system more easy to use incase you would like to add another equipment type --------
      • Set equipmenttypes[13] = 5
      • -------- leave these ones below --------
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked player) controller) Equal to User
            • Then - Actions
              • Multiboard - Create a multiboard with 2 columns and equipmenttypes[13] rows, titled ((Name of (Picked player)) + 's Inventory)
              • Set playersmultiboard[(Player number of (Picked player))] = (Last created multiboard)
              • Multiboard - Set the width for playersmultiboard[(Player number of (Picked player))] item in column 1, row 1 to 100.00% of the total screen width
              • Multiboard - Set the width for playersmultiboard[(Player number of (Picked player))] item in column 1, row 2 to 100.00% of the total screen width
              • Multiboard - Set the width for playersmultiboard[(Player number of (Picked player))] item in column 1, row 3 to 100.00% of the total screen width
              • Multiboard - Set the width for playersmultiboard[(Player number of (Picked player))] item in column 1, row 4 to 100.00% of the total screen width
              • Multiboard - Set the width for playersmultiboard[(Player number of (Picked player))] item in column 1, row 5 to 100.00% of the total screen width
              • Multiboard - Set the width for playersmultiboard[(Player number of (Picked player))] item in column 2, row 1 to 100.00% of the total screen width
              • Multiboard - Set the width for playersmultiboard[(Player number of (Picked player))] item in column 2, row 2 to 100.00% of the total screen width
              • Multiboard - Set the width for playersmultiboard[(Player number of (Picked player))] item in column 2, row 3 to 100.00% of the total screen width
              • Multiboard - Set the width for playersmultiboard[(Player number of (Picked player))] item in column 2, row 4 to 100.00% of the total screen width
              • Multiboard - Set the width for playersmultiboard[(Player number of (Picked player))] item in column 2, row 5 to 100.00% of the total screen width
              • Multiboard - Hide all multiboards
              • Multiboard - Show all multiboards
              • Trigger - Add to retrieve item <gen> the event (Player - (Picked player) Presses the Right Arrow key)
              • Trigger - Add to multiboardup <gen> the event (Player - (Picked player) Presses the Up Arrow key)
              • Trigger - Add to multiboarddown <gen> the event (Player - (Picked player) Presses the Down Arrow key)
              • Trigger - Add to toggle and untoggle multiboard <gen> the event (Player - (Picked player) types a chat message containing -toggle multiboard as An exact match)
              • Trigger - Add to playertypes <gen> the event (Player - (Picked player) types a chat message containing -equip as A substring)
                • Else - Actions
Sometimes hiding then showing a multiboard will fix the width issue.
 
Status
Not open for further replies.
Top