I'm trying to figure out how to get a trigger that fires after a player has killed a certain amount of an enemies units.
For example, player one kills 5 of player 2's units, and is now allowed to build a building that was previously disallowed
Then maybe at 10 kills he can build something else.....
say at 25 kills he's given a unit with exta HP and Damage....
50....75....100....150...200....400 ect all giving different things.
i assume i'd be using the any unit dies event, but for variables/conditions part i have no idea how to make it keep track of each players kill count, and how to trigger each action for achieving each level of kills.... anyone know what i have to do?
So this says that each time player 1 kills a unit for player 2 add 1 to the Death Count. If the Death Count = 25 then spawn a Marine at the center of the map for player 1.
I'm trying to figure out how to get a trigger that fires after a player has killed a certain amount of an enemies units.
For example, player one kills 5 of player 2's units, and is now allowed to build a building that was previously disallowed Then maybe at 10 kills he can build something else..... say at 25 kills he's given a unit with exta HP and Damage.... 50....75....100....150...200....400 ect all giving different things.
i assume i'd be using the any unit dies event, but for variables/conditions part i have no idea how to make it keep track of each players kill count, and how to trigger each action for achieving each level of kills.... anyone know what i have to do?
Create an integer variable to keep track of the kills.
this checks for unit death and increments the count
this next trigger checks for the kill count
Thank you, very helpful!
@JeRDLe: Go
You could also do it in a single trigger by using an "If, Then" statement to check the Death Count variable:
So this says that each time player 1 kills a unit for player 2 add 1 to the Death Count. If the Death Count = 25 then spawn a Marine at the center of the map for player 1.