• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] Multiboard Broken

Status
Not open for further replies.
Level 8
Joined
Jul 29, 2010
Messages
319
I have no idea what i'm doing when it comes to multiboards, i find it hard to follow the tutorials for them so these triggers are messy as all hell
  • Leaderboard Creation
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Set Player_Count = (Number of players in (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing))))
      • Multiboard - Create a multiboard with 4 columns and (Player_Count + 1) rows, titled Scores
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to Players
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to Kills
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 1 to Score
      • For each (Integer A) from 1 to (Player_Count + 1), do (Actions)
        • Loop - Actions
          • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 1 to Show text and Show icons
          • Multiboard - Set the icon for (Last created multiboard) item in column 4, row 1 to ReplaceableTextures\CommandButtons\BTNOrcBattleStandard.blp
          • Multiboard - Set the display style for (Last created multiboard) item in column 1, row (Integer A) to Show text and Hide icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 2, row (Integer A) to Show text and Hide icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 3, row (Integer A) 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 (Integer A) to 3.00% of the total screen width
          • Multiboard - Set the width for (Last created multiboard) item in column 2, row (Integer A) to 8.00% of the total screen width
          • Multiboard - Set the width for (Last created multiboard) item in column 3, row (Integer A) to 3.00% of the total screen width
      • Set List = 2
      • Player Group - Pick every player in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) controller) Equal to User))) and do (Actions)
        • Loop - Actions
          • Set Multiboard_Spots[(Player number of (Picked player))] = List
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row List to (Player_Colours[(Player number of (Picked player))] + ((Name of (Picked player)) + |r))
          • Multiboard - Set the text for (Last created multiboard) item in column 3, row List to 0
          • Multiboard - Set the icon for (Last created multiboard) item in column 1, row List to ReplaceableTextures\CommandButtons\BTNDwarvenLongRifle.blp
          • Set List = (List + 1)
      • Multiboard - Show (Last created multiboard)
  • Leaderboard Update
    • Events
      • Unit - A unit Dies
    • Conditions
      • And - All (Conditions) are true
        • Conditions
      • ((Dying unit) belongs to an enemy of (Owner of (Killing unit))) Equal to True
      • (Unit-type of (Dying unit)) Not equal to Dummy Unit (Dummy)
      • (Unit-type of (Dying unit)) Not equal to Dummy Bullet (arrow)
    • Actions
      • Set PlayerKills[(Player number of (Owner of (Killing unit)))] = (PlayerKills[(Player number of (Owner of (Killing unit)))] + 1)
      • Set KillstreakReset[(Player number of (Owner of (Killing unit)))] = (KillstreakReset[(Player number of (Owner of (Killing unit)))] + 1)
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row Multiboard_Spots[(Player number of (Owner of (Killing unit)))] to (String(PlayerKills[(Player number of (Owner of (Killing unit)))]))
 
Level 10
Joined
Sep 16, 2016
Messages
269
Next time, please upload the test map or specifically state the details of the problem, no many people enjoy reading your long lines of triggers. The problem might be
  • Multiboard - Set the text for (Last created multiboard) item in column 2, row Multiboard_Spots[(Player number of (Owner of (Killing unit)))] to (String(PlayerKills[(Player number of (Owner of (Killing unit)))]))
Set 2 > 3
 
Status
Not open for further replies.
Top