I am in the process of creating a team deathmatch map, but I do not know how to give team victory for reaching a certain amount of kills. I have downloaded a scoreboard to help, but all it does is track the score. if someone can tell me how to fix the triggers let me know.
Ok you need a trigger that uses a Unit Dies event. You then have an Integer type global variable that you add the kill to using a Modify Variable (Integer) action. The variable is an array of size 1 with the 0/1 representing the different teams. You then have an If Then Else action that uses a Comparison condition comparing Owner Of Unit>Killing Unit = Player From Player Group>Allies/Enemies Of Player as the functions. Based on this you know which team to give the +1 to the variable. You then have two more If Then Else actions that have a Comparison condition comparing the variable for each team against a constant which is the number of kills for victory and then have End Game For Player actions.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
I am in the process of creating a team deathmatch map, but I do not know how to give team victory for reaching a certain amount of kills. I have downloaded a scoreboard to help, but all it does is track the score. if someone can tell me how to fix the triggers let me know.
Ok you need a trigger that uses a Unit Dies event. You then have an Integer type global variable that you add the kill to using a Modify Variable (Integer) action. The variable is an array of size 1 with the 0/1 representing the different teams. You then have an If Then Else action that uses a Comparison condition comparing Owner Of Unit>Killing Unit = Player From Player Group>Allies/Enemies Of Player as the functions. Based on this you know which team to give the +1 to the variable. You then have two more If Then Else actions that have a Comparison condition comparing the variable for each team against a constant which is the number of kills for victory and then have End Game For Player actions.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg