I can not for the life of me figure out what is wrong with my trigger and I know it is something simple.
This is basically the trigger I have.
Event - Any Unit Dies
If ( kIlls[propietary of killing unit] >= 200
then "set name_of_upgrade" to player 1
For some reason it adds up all the kills of all the players and then sets the upgrade for player 1. I want it to stop combining all kill scores to add up to 200, so that it only counts player 1s kills as player 1s kills. Any help would be greatly appreciated. Thank you!
For some reason it's adding the kills together for all players.
I assume you increase the killcount per player, and as I read what you have set. if any players kill count exceeds 200 then set name of upgrade for player 1.
shouldn't that be set name of upgrade for owner of killing unit (propietary of killing unit)
the event "any unit dies" needs to add a condition of owner of killing unit = player 1, otherwise it is simply adding up all units that have died, including player 1
Check out my sample map listed in my sig.
It has basic kill score tracking and leader board. Supports up to 16 players 0-15 in game with like 1 trigger
I was able to get the kills to count correctly for player 1, but when it comes to player 2 even if I change (Condition Owner of killing unit) == 2 it counts all the kills and adds up grades for player 2. I thought I had gotten it figured out until it came to player 2. And soulcarverr thanks, I am actually using your killtracking and leaderboard already :)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I can not for the life of me figure out what is wrong with my trigger and I know it is something simple.
This is basically the trigger I have.
Event - Any Unit Dies
If ( kIlls[propietary of killing unit] >= 200
then "set name_of_upgrade" to player 1
For some reason it adds up all the kills of all the players and then sets the upgrade for player 1. I want it to stop combining all kill scores to add up to 200, so that it only counts player 1s kills as player 1s kills. Any help would be greatly appreciated. Thank you!
For some reason it's adding the kills together for all players.
I assume you increase the killcount per player, and as I read what you have set. if any players kill count exceeds 200 then set name of upgrade for player 1.
shouldn't that be set name of upgrade for owner of killing unit (propietary of killing unit)
@Helral: Go
Hmm, Ill try that out. Makes sense what you are saying. Thank you!
the event "any unit dies" needs to add a condition of owner of killing unit = player 1, otherwise it is simply adding up all units that have died, including player 1
@chubz04: Go
Check out my sample map listed in my sig. It has basic kill score tracking and leader board. Supports up to 16 players 0-15 in game with like 1 trigger
@SouLCarveRR: Go
@Anthius: Go
I was able to get the kills to count correctly for player 1, but when it comes to player 2 even if I change (Condition Owner of killing unit) == 2 it counts all the kills and adds up grades for player 2. I thought I had gotten it figured out until it came to player 2. And soulcarverr thanks, I am actually using your killtracking and leaderboard already :)