I understand how to create a leaderboard to count kills. Which is...
Player Kills
Events
Unit - Any Unit dies
Local Variables
Conditions
(Owner of (Triggering unit)) == 14
Actions
Variable - Modify Player Kills[(Killing player)]: + 1
Leaderboard - Set LeadBoard item text at column 2 and row (Killing player) to (Text(Player Kills[(Killing player)]))
I made something that worked for counting deaths but I dont think I need to duplicate it 10 times >.<
Whats the proper way to do this for all players?
Player 1's Deaths
Events
Unit - Any Unit dies
Local Variables
Conditions
(Owner of (Triggering unit)) == 1
Actions
Variable - Modify Deaths[(Triggering player)]: + 1
Leaderboard - Set LeadBoard item text at column 3 and row (Triggering player) to (Text(Deaths[(Triggering player)]))
I thought it would be to add the condition of each player 1-10 but nothing happens.
The Actions themselves should work for any player's units.
How are your conditions connected? By default, the game treats multiple conditions as connected via "And", so you'd have to use an "Or"-Condition to tell it not to do that (as it turns out, it is quite rare that a unit is owned by 10 players at the same time).
The trigger I created at the bottom of my original post works for individual players. What I dont understand is how to make that single trigger work for all 10 players.
I understand how to create a leaderboard to count kills. Which is...
Player Kills
Events
Unit - Any Unit dies
Local Variables
Conditions
(Owner of (Triggering unit)) == 14
Actions
Variable - Modify Player Kills[(Killing player)]: + 1
Leaderboard - Set LeadBoard item text at column 2 and row (Killing player) to (Text(Player Kills[(Killing player)]))
I made something that worked for counting deaths but I dont think I need to duplicate it 10 times >.<
Whats the proper way to do this for all players?
Player 1's Deaths
Events
Unit - Any Unit dies
Local Variables
Conditions
(Owner of (Triggering unit)) == 1
Actions
Variable - Modify Deaths[(Triggering player)]: + 1
Leaderboard - Set LeadBoard item text at column 3 and row (Triggering player) to (Text(Deaths[(Triggering player)]))
I thought it would be to add the condition of each player 1-10 but nothing happens.
The Actions themselves should work for any player's units.
How are your conditions connected? By default, the game treats multiple conditions as connected via "And", so you'd have to use an "Or"-Condition to tell it not to do that (as it turns out, it is quite rare that a unit is owned by 10 players at the same time).
@LeonSed:
The trigger I created at the bottom of my original post works for individual players. What I dont understand is how to make that single trigger work for all 10 players.
try using "Owner of triggering unit" instead of triggering player and remove the condition.
That works thank you funky