I think you need to make variables that keep track of the number of units killed with triggers.
I would use something like:
Event: Any Unit dies
Variable: roaches_killed[PLAYER], zerglings_killed[PLAYER], etc
Action: if (Triggering unit==roach){Set Variable roaches_killed[triggering_player] = roaches_killed[triggering_player]+1 }
if (Triggering unit==zergling){Set Variable zerglings_killed[triggering_player] = zerglingss_killed[triggering_player]+1 }
Then I think you need to make a leaderboard for each player and use the hide/show leaderboard function which comes with an integer parameter that lets you set who you want to show the leaderboard to.
Action: if (Triggering unit==roach){Set Variable roaches_killed[triggering_player] = roaches_killed[triggering_player]+1 }
if (Triggering unit==zergling){Set Variable zerglings_killed[triggering_player] = zerglingss_killed[triggering_player]+1 }
When you have multiple cases like this, you can set a Switch to do sets of actions depending on "unit type of triggering unit", rather than a long list of If/Then/Else.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have no experience with leaderboard trigger. What I"m looking for is a leader board that display kills in specific units.
Like " Player 1 Kills Unit Type 5 Roach 52 Zerglings.
and if somehow make it to where it's private, like other allies can't see it except for yourself?
I think you need to make variables that keep track of the number of units killed with triggers.
I would use something like:
Event: Any Unit dies
Variable: roaches_killed[PLAYER], zerglings_killed[PLAYER], etc
Action: if (Triggering unit==roach){Set Variable roaches_killed[triggering_player] = roaches_killed[triggering_player]+1 }
if (Triggering unit==zergling){Set Variable zerglings_killed[triggering_player] = zerglingss_killed[triggering_player]+1 }
Then I think you need to make a leaderboard for each player and use the hide/show leaderboard function which comes with an integer parameter that lets you set who you want to show the leaderboard to.
Depending on how complex you want to make your leaderboard it may be easier to use custom dialogs instead of the built-in leaderboard system.
When you have multiple cases like this, you can set a Switch to do sets of actions depending on "unit type of triggering unit", rather than a long list of If/Then/Else.