it counts all kills for 8 players
when a player gets 10 kills 2 units are created at X and X region (unique to the player, cannot be the same)
and a message pops up(to the player who got 10 kills) saying u have gotten 10 kills etc
your condition is messed up. the condition has to apply to the event. so what fires the trigger is when any unit dies. that has nothing to do with the triggering player. an example of triggering player is when a played uses a dialog item or leaves the game. you haev to change that to the owner of the triggering unit also with the action in your second trigger. needs to say owner of triggerint unit. you also want to just modify the global variable, dont set it.
your condition is messed up. the condition has to apply to the event. so what fires the trigger is when any unit dies. that has nothing to do with the triggering player. an example of triggering player is when a played uses a dialog item or leaves the game. you haev to change that to the owner of the triggering unit also with the action in your second trigger. needs to say owner of triggerint unit. you also want to just modify the global variable, dont set it.
thank you
i changed " Unit dies " to " Unit - (Killing unit) dies "
and it works thank you!
would u be able to answer my last question
side question how would i do the same for counting building RAZES as in the ammount of buildings a player has destroyed.
make a new trigger and variable for building kills, use the unit dies event, and use a condition to check whether it's a building, and then increase the variable. Then make it run another trigger if building kills = what you want it to be, and give the reward.
your condition is messed up. the condition has to apply to the event. so what fires the trigger is when any unit dies. that has nothing to do with the triggering player. an example of triggering player is when a played uses a dialog item or leaves the game. you haev to change that to the owner of the triggering unit also with the action in your second trigger. needs to say owner of triggerint unit. you also want to just modify the global variable, dont set it.
Quote from Unit Dies Event Hint:
Use "Triggering Player" to get the owner of the unit that died.
Triggering Player is possible, but would refer to the false Player. What you can use here is Killing Player or Owner of (Kiling Unit) to get the Player, wich killed the Unit.
hi this is basically what i want to happen
it counts all kills for 8 players when a player gets 10 kills 2 units are created at X and X region (unique to the player, cannot be the same) and a message pops up(to the player who got 10 kills) saying u have gotten 10 kills etc
this is what ive got:
TRIGGER 1
TRIGGER 2
i got a global variable that is a integer ARRAY with 8
PlayerKills = 0 <Integer[8]>
can someone please help me achieve this.
side question how would i do the same for counting building RAZES as in the ammount of buildings a player has destroyed.
@zISilenced: Go
your condition is messed up. the condition has to apply to the event. so what fires the trigger is when any unit dies. that has nothing to do with the triggering player. an example of triggering player is when a played uses a dialog item or leaves the game. you haev to change that to the owner of the triggering unit also with the action in your second trigger. needs to say owner of triggerint unit. you also want to just modify the global variable, dont set it.
thank you
i changed " Unit dies " to " Unit - (Killing unit) dies " and it works thank you! would u be able to answer my last question
side question how would i do the same for counting building RAZES as in the ammount of buildings a player has destroyed.
make a new trigger and variable for building kills, use the unit dies event, and use a condition to check whether it's a building, and then increase the variable. Then make it run another trigger if building kills = what you want it to be, and give the reward.
Note: you should use modify variable instead of
because it is less error-prone.
I also recommend to use only one trigger and an if-statement instead of a trigger condition.
Triggering Player is possible, but would refer to the false Player.
What you can use here is Killing Player or Owner of (Kiling Unit) to get the Player, wich killed the Unit.
Cheers
Then
I also recommend to use only one trigger and an if-statement instead of a trigger condition.
How would i achieve that?
also i cant seem to count building kills could someone please explain how to do that? so it will count building kills.