• 🏆 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!

I need help with making a multiboard which records each players kills

Status
Not open for further replies.
Level 6
Joined
Jan 3, 2010
Messages
185
Hi im currently working on a mpa which uses a multiboard system to record kills made by players but it records every kill made i havent made the system for all players yet beacause of this i know why it doesnt work so i really just want a way so it only records killed by units owned by player any help is appreciated
here is my entire system so far
  • leadrboard
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Multiboard - Create a multiboard with 2 columns and 9 rows, titled Kill Tracker
      • 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 1, row 2 to 10.00% of the total screen width
      • 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 width for (Last created multiboard) item in column 1, row 4 to 10.00% of the total screen width
      • 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 width for (Last created multiboard) item in column 1, row 6 to 10.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 7 to 10.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 8 to 10.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 9 to 10.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 1 to 10.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 2 to 10.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 3 to 10.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 4 to 10.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 5 to 10.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 6 to 10.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 7 to 10.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 8 to 10.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 9 to 10.00% of the total screen width
      • Multiboard - Minimize (Last created multiboard)
      • Multiboard - Maximize (Last created multiboard)
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Player
      • 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 2, row 2 to 0
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 3 to 0
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 4 to 0
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 5 to 0
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 6 to 0
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 7 to 0
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 8 to 0
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 9 to 0
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to (Name of Player 1 (Red))
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 3 to (Name of Player 2 (Blue))
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 4 to (Name of Player 3 (Teal))
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 5 to (Name of Player 4 (Purple))
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 6 to (Name of Player 5 (Yellow))
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 7 to (Name of Player 6 (Orange))
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 8 to (Name of Player 7 (Green))
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 9 to (Name of Player 8 (Pink))
  • Points
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Set kills[1] = (kills[1] + 1)
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String(kills[1]))
 
Level 7
Joined
Mar 6, 2006
Messages
282
A couple things.

1. For future references, you can set Column or Row to zero, and the trigger will set for every Column or Row. So you could take out all those triggers to set the width, and replace it with just
"Set the width for (Last Created Multiboard) item in column 0, row 0, to 10.00% of the total screen width"

2. In your Points trigger, you would set the Kill[] variable like this:
"Set Kills[Player Number of (Owner of Killing Unit)] = Kills[Player Number of (Owner of Killing Unit)] + 1"
and then change the multiboard like:
"Set text for (Last Created Multiboard) item in column 2, row ((Player Number of (Owner of Killing Unit)) + 1) to (String(Kills[Player Number of (Owner of Killing Unit)])"

You do the (Player Number of Owner of Killing Unit) PLUS one, because the first row is used for the word "Kills".

3. Now that you know all that, I'm gonna tell you, you don't even need a multiboard if this is all you are using it for! The leaderboard will do all this for you, because it only displays an integer for each player, which in your case would be that player's kills.

So just use a leader board!
 
Level 11
Joined
Feb 14, 2009
Messages
884
This has been answered like a million times. The Search button is your friend. Use it!
 
Status
Not open for further replies.
Top