Does this only work when you uploaded it, if i test it with my map it just says nobody is playing and i get errors when the hostile AI is killing something. But it does not add kill, i see the leaderboard to.
Redunzgofasta's Trigger and Darvo's(darvlok) Tutorial :
This how you make a good Attack Trigger, that targets every unit of a certain player
First make a new trigger and name it, then make a new event that adds a periodic timer that activates every 20seconds in real time.
Next click on the Local Variables and press CTRL W.
Then at type, search for Unit Group
Then double click on Initial Value: Empty Unit Group. And search for the Units in Region With Alliance To Player
Now you only need to Change Any Player to Player 1, now name your first Variable, we used Zerg.
Now repeat Part 1 to Part 4 and change Any Player to your enemies Player number. And change the new Local Variable name to Player 1.
Now repeat Part 5 again if you have more enemies or a second Player ally.
Now you need to make a Action, press CTRL W again. And search for the add Unit group to Unit group.
Click on Source Unit Group and go to variable and add Player 2.
Then go to Target Unit Group and go to variable and add Player 1 so Player 1 and Player 2 are in one Unit Group and have both the same ally’s and enemies.
Now add the last action, and search for the Issue order to Unit Group
Now go to the Group section and add the Zerg Unit Group.
Now change the Order with no target to Order targeting Unit Group
Change Ability Command to Attack
Then change Unit Group to Player 1
Your finished and made a worldwide Attack Trigger, you can use this trigger in zombie maps and defense maps.
I even copied your triggers to mine, i use player 15 too. And player 10 and player 2 go berserk and even attack there own units and player 14 and player 15 just stay at there spawn and do nothing.
Nope does not help, but you still don't get my problem like others. Maybe this will get you to now my problem, there is a populair map in custom games that is called Outpost Defender. You need to block the passages, by building bunkers and other stuff. The still keep coming then even when you blocked the path.
Now MY problem is, the dont keep on coming anymore when I blocked the path with bunkers.
I am not making a Tower defense game, just hostile AI units that don't have any control except the attack a point. But if you block the way to the point the just walk around the terrain walls and mass at some point.
Uhm he onlys talks about data.... But you don't get my problem, it does not matter how many units there are or the size of the units, even if there is one ground unit he does not attack the bunkers he just walks around it, but if you just put 2 bunkers and no choke point the go and attack it but if you close it the just run around it and go mass on some wall nearby.
I am not making a TD game, but a base defense against zombies, but you need to block paths if you want to survive, but if you do that in my map the don't attack anymore.
Well i got a game breaking problem, i used some spawn triggers and let them autoattack a certain point, al goes wel until the player blocks of the pad with bunkers or something else, then the walk to the side of the terrain walls and mass there. Can anyone help me with this, the need to attack the bunkers on that pad, but the won't do it.
0
@Gaurus: Go
Does this only work when you uploaded it, if i test it with my map it just says nobody is playing and i get errors when the hostile AI is killing something. But it does not add kill, i see the leaderboard to.
0
Darvo's(darvlok) Tutorial about Attack Triggers {thanks to Redunzgofasta for helping me out}
A simple Tutorial about how to add Units to A building and let them be trained out of it:
First select the building you want, I used the Barracks.
Then double click the Barrack Train icon, a window pops up on your right side, now double click on a empty Train Command like 07.
Under Info search the unit you want to add, like the SCV.
Then scroll down, and click on the Add value button (green one) under Info Unit
Then search again for the SCV and click on it. First select the building you want, I used the Barracks.
Now press oke, and you see it in your window.
Double click on the Barrack icon in your left window to see the Command Card
Click on a empty grey spot, and use the green Add Button
Search for the SCV and click ok
Now under the window were the SCV has been added you see a command type, search for the Ability Command
At the ability search bar, find the Barracks Train and use it. And then at the Ability Command search for the Train SCV.
Now you can train a SCV at the barracks, when you build it in the game.
0
Redunzgofasta's Trigger and Darvo's(darvlok) Tutorial :
This how you make a good Attack Trigger, that targets every unit of a certain player
First make a new trigger and name it, then make a new event that adds a periodic timer that activates every 20seconds in real time.
Next click on the Local Variables and press CTRL W.
Then at type, search for Unit Group
Then double click on Initial Value: Empty Unit Group. And search for the Units in Region With Alliance To Player
Now you only need to Change Any Player to Player 1, now name your first Variable, we used Zerg.
Now repeat Part 1 to Part 4 and change Any Player to your enemies Player number. And change the new Local Variable name to Player 1.
Now repeat Part 5 again if you have more enemies or a second Player ally.
Now you need to make a Action, press CTRL W again. And search for the add Unit group to Unit group.
Click on Source Unit Group and go to variable and add Player 2.
Then go to Target Unit Group and go to variable and add Player 1 so Player 1 and Player 2 are in one Unit Group and have both the same ally’s and enemies.
Now add the last action, and search for the Issue order to Unit Group
Now go to the Group section and add the Zerg Unit Group.
Now change the Order with no target to Order targeting Unit Group
Change Ability Command to Attack
Then change Unit Group to Player 1
Your finished and made a worldwide Attack Trigger, you can use this trigger in zombie maps and defense maps.
0
Redunzgofasta's Trigger and Darvo's(darvlok) Tutorial :
This how you make a good Attack Trigger, that targets every unit of a certain player
First make a new trigger and name it, then make a new event that adds a periodic timer that activates every 20seconds in real time. http://www.darvo.org/images/Tutorials%20Starcraft%202/Attack%20Trigger%20Tutorial%20Part%201.jpg
Next click on the Local Variables and press CTRL W. http://www.darvo.org/images/Tutorials%20Starcraft%202/Attack%20Trigger%20Tutorial%20Part%202.jpg
Then at type, search for Unit Group http://www.darvo.org/images/Tutorials%20Starcraft%202/Attack%20Trigger%20Tutorial%20Part%203.jpg
Then double click on Initial Value: Empty Unit Group. And search for the Units in Region With Alliance To Player http://www.darvo.org/images/Tutorials%20Starcraft%202/Attack%20Trigger%20Tutorial%20Part%204.jpg
Now you only need to Change Any Player to Player 1, now name your first Variable, we used Zerg. http://www.darvo.org/images/Tutorials%20Starcraft%202/Attack%20Trigger%20Tutorial%20Part%205.jpg
Now repeat Part 1 to Part 4 and change Any Player to your enemies Player number. And change the new Local Variable name to Player 1. http://www.darvo.org/images/Tutorials%20Starcraft%202/Attack%20Trigger%20Tutorial%20Part%206.jpg
Now repeat Part 5 again if you have more enemies or a second Player ally. http://www.darvo.org/images/Tutorials%20Starcraft%202/Attack%20Trigger%20Tutorial%20Part%207.jpg
Now you need to make a Action, press CTRL W again. And search for the add Unit group to Unit group. http://www.darvo.org/images/Tutorials%20Starcraft%202/Attack%20Trigger%20Tutorial%20Part%208.jpg
Click on Source Unit Group and go to variable and add Player 2. http://www.darvo.org/images/Tutorials%20Starcraft%202/Attack%20Trigger%20Tutorial%20Part%209.jpg
Then go to Target Unit Group and go to variable and add Player 1 so Player 1 and Player 2 are in one Unit Group and have both the same ally’s and enemies. http://www.darvo.org/images/Tutorials%20Starcraft%202/Attack%20Trigger%20Tutorial%20Part%2010.jpg
Now add the last action, and search for the Issue order to Unit Group http://www.darvo.org/images/Tutorials%20Starcraft%202/Attack%20Trigger%20Tutorial%20Part%2011.jpg
Now go to the Group section and add the Zerg Unit Group. http://www.darvo.org/images/Tutorials%20Starcraft%202/Attack%20Trigger%20Tutorial%20Part%2012.jpg
Now change the Order with no target to Order targeting Unit Group http://www.darvo.org/images/Tutorials%20Starcraft%202/Attack%20Trigger%20Tutorial%20Part%2013.jpg
Change Ability Command to Attack http://www.darvo.org/images/Tutorials%20Starcraft%202/Attack%20Trigger%20Tutorial%20Part%2014.jpg
Then change Unit Group to Player 1 http://www.darvo.org/images/Tutorials%20Starcraft%202/Attack%20Trigger%20Tutorial%20Part%2015.jpg
Your finished and made a worldwide Attack Trigger, you can use this trigger in zombie maps and defense maps.
0
@Redunzgofasta: Go
THANKS!!!! this is just what i want, the act like zombies. Gonna add you to the map as helper :)
0
@Redunzgofasta: Go
Done :)
http://www.sc2mapster.com/maps/terran-vs-infected-beta/files/3-terran-defens-vs-infected/
0
@Redunzgofasta: Go
I even copied your triggers to mine, i use player 15 too. And player 10 and player 2 go berserk and even attack there own units and player 14 and player 15 just stay at there spawn and do nothing.
0
@Redunzgofasta: Go
Nope does not work, only my white refugees are attacking me now and the infected groups dont do anything at all and stand still.
@KineMorto: Go Already tried what you said, but did not work.
here is my file http://www.sc2mapster.com/maps/terran-vs-infected-beta/files/2-terran-defens-vs-infected/
0
@ajilejay: Go
Nope does not help, but you still don't get my problem like others. Maybe this will get you to now my problem, there is a populair map in custom games that is called Outpost Defender. You need to block the passages, by building bunkers and other stuff. The still keep coming then even when you blocked the path.
Now MY problem is, the dont keep on coming anymore when I blocked the path with bunkers.
0
@Mozared: Go
I am not making a Tower defense game, just hostile AI units that don't have any control except the attack a point. But if you block the way to the point the just walk around the terrain walls and mass at some point.
0
@ajilejay: Go
Uhm he onlys talks about data.... But you don't get my problem, it does not matter how many units there are or the size of the units, even if there is one ground unit he does not attack the bunkers he just walks around it, but if you just put 2 bunkers and no choke point the go and attack it but if you close it the just run around it and go mass on some wall nearby.
I am not making a TD game, but a base defense against zombies, but you need to block paths if you want to survive, but if you do that in my map the don't attack anymore.
0
Choke point problem
Well i got a game breaking problem, i used some spawn triggers and let them autoattack a certain point, al goes wel until the player blocks of the pad with bunkers or something else, then the walk to the side of the terrain walls and mass there. Can anyone help me with this, the need to attack the bunkers on that pad, but the won't do it.
0
Uhm bump?? Does nobody now the answer, please or else my map i ruined.
0
@mchen804: Go
Just see my website: http://www.darvo.org/blog/?p=259 the coding of this forum is terrible.
0
@mchen804: Go
A simple Tutorial about how to add Units to A building and let them be trained out of it:
First select the building you want, I used the Barracks.
Then double click the Barrack Train icon, a window pops up on your right side, now double click on a empty Train Command like 07.
Under Info search the unit you want to add, like the SCV.
Then scroll down, and click on the Add value button (green one) under Info Unit
Then search again for the SCV and click on it. First select the building you want, I used the Barracks.
Now press oke, and you see it in your window.
Double click on the Barrack icon in your left window to see the Command Card
Click on a empty grey spot, and use the green Add Button
Search for the SCV and click ok
Now under the window were the SCV has been added you see a command type, search for the Ability Command
At the ability search bar, find the Barracks Train and use it. And then at the Ability Command search for the Train SCV.
Now you can train a SCV at the barracks, when you build it in the game.