• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Team Score

Status
Not open for further replies.
Level 3
Joined
Aug 15, 2007
Messages
67
How can this be done? LeaderBoard or MultiBoard? I have read alot about making both but not how to setup a team score.
 
Level 8
Joined
Jul 3, 2004
Messages
404
This is the setup, dont forget to set the with for all collums/rows

  • MB ini
    • Events
      • Time - Elapsed game time is 2.00 seconds
    • Conditions
    • Actions
      • Multiboard - Create a multiboard with 3 columns and 16 rows, titled Statics
      • Set Multi = (Last created multiboard)
      • -------- - --------
      • Multiboard - Set the width for Multi item in column 1, row 1 to 8.00% of the total screen width
      • -------- - --------
      • Multiboard - Set the text for Multi item in column 1, row 1 to Team 1
      • Multiboard - Set the text for Multi item in column 1, row 5 to Team 2
      • Multiboard - Set the text for Multi item in column 1, row 9 to Team 3
      • Multiboard - Set the text for Multi item in column 1, row 13 to Team 4
      • -------- - --------
      • Multiboard - Set the text for Multi item in column 1, row 2 to (Name of Player 1 (Red))
      • Multiboard - Set the text for Multi item in column 1, row 3 to (Name of Player 2 (Blue))
      • Multiboard - Set the text for Multi item in column 1, row 4 to (Name of Player 3 (Teal))
      • Multiboard - Set the text for Multi item in column 1, row 6 to (Name of Player 4 (Purple))
      • Multiboard - Set the text for Multi item in column 1, row 7 to (Name of Player 5 (Yellow))
      • Multiboard - Set the text for Multi item in column 1, row 8 to (Name of Player 6 (Orange))
      • Multiboard - Set the text for Multi item in column 1, row 10 to (Name of Player 7 (Green))
      • Multiboard - Set the text for Multi item in column 1, row 11 to (Name of Player 8 (Pink))
      • Multiboard - Set the text for Multi item in column 1, row 12 to (Name of Player 9 (Gray))
      • Multiboard - Set the text for Multi item in column 1, row 14 to (Name of Player 10 (Light Blue))
      • Multiboard - Set the text for Multi item in column 1, row 15 to (Name of Player 11 (Dark Green))
      • Multiboard - Set the text for Multi item in column 1, row 16 to (Name of Player 12 (Brown))
      • -------- - --------
      • Multiboard - Set the text for Multi item in column 2, row 1 to Unit Kills
      • Multiboard - Set the text for Multi item in column 3, row 1 to Hero Kills
      • Multiboard - Show Multi
I made two seperate triggers for Unit and Hero kill counts, to make the triggers not to heavy, it laggs in WE.

Unit (only take Red and Blue)
  • UKC
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to False
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Killing unit)) Equal to Player 1 (Red)
        • Then - Actions
          • Set q_unit_Kill_Count[1] = (q_unit_Kill_Count[1] + 1)
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String(q_unit_Kill_Count[1]))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Killing unit)) Equal to Player 2 (Blue)
        • Then - Actions
          • Set q_unit_Kill_Count[2] = (q_unit_Kill_Count[2] + 1)
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row 3 to (String(q_unit_Kill_Count[2]))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Hero Kill count

  • HKC
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Killing unit)) Equal to Player 1 (Red)
        • Then - Actions
          • Set q_Hero_Kill_Count[1] = (q_Hero_Kill_Count[1] + 1)
          • Multiboard - Set the text for (Last created multiboard) item in column 3, row 2 to (String(q_Hero_Kill_Count[1]))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Killing unit)) Equal to Player 2 (Blue)
        • Then - Actions
          • Set q_Hero_Kill_Count[2] = (q_Hero_Kill_Count[2] + 1)
          • Multiboard - Set the text for (Last created multiboard) item in column 3, row 3 to (String(q_Hero_Kill_Count[2]))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
I hope this helps =)
 
Level 3
Joined
Aug 15, 2007
Messages
67
I have a working leaderboard I just don't know how to do teams. I want the players in the teams score added togeather to make a team score. i.e Player 1, 2 and 3 as Team 1 ect. I only need kills nothing else. Thanks for all your help so far!
 
Level 3
Joined
Aug 15, 2007
Messages
67
How could I set it up so it goes..
Score

Team 1 (Score)
Player 1 (Score)
Player 2 (Score)
Player 3 (Score)

Team 2 (Score)
Player 4 (Score)
Player 5 (Score)
Player 6 (Score)

Team 3 (Score)
Player 7 (Score)
Player 8 (Score)
Player 9 (Score)

Team 2 (Score)
Player 10 (Score)
Player 11 (Score)
Player 12 (Score)

Because when somone gets a point I have a trigger that updates and scores the leaderboard.
 
Last edited:
Level 3
Joined
Aug 15, 2007
Messages
67
What I don't know how to do is get the Team Score

Team 1 (Score)
Player 1 (Score)
ect..

I did this but it makes it say
Team 1 (000) each interger is a player score in that team

  • Score Board Team Score
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • Multiboard - Set the text for multi item in column 2, row 1 to ((String(unitkills[1])) + ((String(unitkills[2])) + (String(unitkills[3]))))
      • Multiboard - Set the text for multi item in column 2, row 5 to ((String(unitkills[4])) + ((String(unitkills[5])) + (String(unitkills[6]))))
      • Multiboard - Set the text for multi item in column 2, row 9 to ((String(unitkills[7])) + ((String(unitkills[8])) + (String(unitkills[9]))))
      • Multiboard - Set the text for multi item in column 2, row 13 to ((String(unitkills[10])) + ((String(unitkills[11])) + (String(unitkills[12]))))
 
Status
Not open for further replies.
Top