this is what im using to store the amount of kills a player has:
Events
Unit - Any Unit dies
Local Variables
Conditions
(Owner of (Killing unit)) == 1
Actions
Variable - Modify Kills player 1: + 1
however it isnt working properly, ill have my unit kill a test group of exactly 10 units but sometimes if they all die too fast than my kills variable will only get around 8 kills instead of 10. anyone have a better working kill counter variable method?
Variable - Modify Kills player (Player: (Owner of (Killing unit)) ): + 1
can you explain to me how to write that trigger exactly? because I cant find find a way to put that (Player: (Owner of (Killing unit)) ) into the action
EDIT: it would actually be better if someone gave me their method of storing a kill into a variable.
this is what im using to store the amount of kills a player has:
Events
Unit - Any Unit dies
Local Variables
Conditions
(Owner of (Killing unit)) == 1
Actions
Variable - Modify Kills player 1: + 1
however it isnt working properly, ill have my unit kill a test group of exactly 10 units but sometimes if they all die too fast than my kills variable will only get around 8 kills instead of 10. anyone have a better working kill counter variable method?
@cinicraft: Go
well this may not fix this speed, but you need to get rid of the condition, that way you only need 1 trigger for all your players
Events
Unit - Any Unit dies
Local Variables
Conditions
Actions
Variable - Modify Kills player (Player: (Owner of (Killing unit)) ): + 1
now it will take care of it for all your players in 1 line of code.
@Molsterr: Go
can you explain to me how to write that trigger exactly? because I cant find find a way to put that (Player: (Owner of (Killing unit)) ) into the action
EDIT: it would actually be better if someone gave me their method of storing a kill into a variable.