First make an Integer variable, then create a trigger. In that trigger, use the "Any Unit Dies" event, and create a condition for it to check if the owner of killing unit is player 1 (and another condition to check if the unit belongs to an enemy of the player, if you want).
Then, create an If-Then-Else action, set the If condition to check if your variable is 100. In Then give the player a building and turn the trigger off (unless you want the player to get a building per 100 kills, then set your variable to 0 instead of turning the trigger off), and in Else use the Modify Integer action to increase your variable by 1.
Hope this helps!
EDIT: If you want this for multiple players, make the variable an array with size of 15, and remove the "owner of killing unit is player 1" condition from the trigger.
Then create a Local Integer Variable in the trigger and set its initial value to "Owner of Killing Unit", and use that to check the array number on your other variable. (for example, should look like "PlayerKills[PlayerID] == 100" or whatever you named your variables as)
PS: You don't really need to make a local variable for that, you could just use "Owner of Killing Unit", but it's more convenient that way imo :P
if player 1 killed 100 units in game, he gets a building.
how do i check a player killed 100 units or not?
First make an Integer variable, then create a trigger. In that trigger, use the "Any Unit Dies" event, and create a condition for it to check if the owner of killing unit is player 1 (and another condition to check if the unit belongs to an enemy of the player, if you want).
Then, create an If-Then-Else action, set the If condition to check if your variable is 100. In Then give the player a building and turn the trigger off (unless you want the player to get a building per 100 kills, then set your variable to 0 instead of turning the trigger off), and in Else use the Modify Integer action to increase your variable by 1.
Hope this helps!
EDIT: If you want this for multiple players, make the variable an array with size of 15, and remove the "owner of killing unit is player 1" condition from the trigger. Then create a Local Integer Variable in the trigger and set its initial value to "Owner of Killing Unit", and use that to check the array number on your other variable. (for example, should look like "PlayerKills[PlayerID] == 100" or whatever you named your variables as)
PS: You don't really need to make a local variable for that, you could just use "Owner of Killing Unit", but it's more convenient that way imo :P
A few things that the other guys answer does not question....
So.
1. Is this just for player 1 or do you want it for everyone?
2. Do you want this to be every 100 kills or just after the first 100 kills
3. Are you wanting this 100 kills to be incremental or not?
His answer works if its ONLY for player 1, and only after the initial 100 kills, and ONLY 100 kills the amount of kills needed never changing.