1. Because I want marines that belong to an ai player to be left alone, also when a human player selects a marine, I assume he wants to control the marine himself, so the selected marines should not move around on their own. If, by 4 or more, you are referring to the range, its because banelings have a splash distance of 2.X (can't remember the exact number), and they move faster than marines (especially on creep or after upgraded), so I want marines to start running when the distance between the marine and the baneling is 4 to have a head start.
2. Is behavior better or ability better? and how to create that behavior?
Triggers might not be the best solution here, since this event would trigger whenever any unit comes in range of any other unit. The number of events triggered would grow drastically, the more units are on the map.
Thats what I worry about, too, and I would be more than happy to take the data approach, but I don't know how. So basically what I want to do is to let units micro themselves on their own. And I'm starting with marines. So whenever a marine is NOT selected by its owner who is also a user player (not a computer), and it sees a baneling coming into its range (4), it would run away and should keeping running until all banelings in its range either died or left. If more than one baneling is in its range, than it should calculate the best angle first, then start running. If the baneling gets too close (range of 3) and the marine has stimpack and is not currently under the effect of stimpack, then it would use stimpack, mimicking what a real person would do when a baneling is heading your way. Can you or anybody show me how to do this? Thanks.
That's pretty much where I'm stuck, too. Though I know how to identify any unit with baneling, in case you want to know, just compare type of triggering unit with baneling in conditons.
thanks for the reply. Can you be more specific? I have never created any behavior before, or used any in conjunction with triggers. In fact, it's the first time I try to use the starcraft 2 editor. Can you explain more? Thanks
I want to create an event that will detect when an enemy baneling enters the range of 4 of any marine, and order that marine to pull back. How to do this? I'm new to this. I found the event of Unit enters/leaves range of unit, but I don't know what to do from there. Can someone help me? thanks!
0
@SouLCarveRR: Go
I guess I should. Well, thanks for the help.
0
@SouLCarveRR: Go
Can you tell me more about the behavior? Like which type of behavior to use and which fields need to be edited, etc. Appreciate your help.
0
@greythepirate: Go
ok. Thanks, I'll try that.
0
@SouLCarveRR: Go
1. Because I want marines that belong to an ai player to be left alone, also when a human player selects a marine, I assume he wants to control the marine himself, so the selected marines should not move around on their own. If, by 4 or more, you are referring to the range, its because banelings have a splash distance of 2.X (can't remember the exact number), and they move faster than marines (especially on creep or after upgraded), so I want marines to start running when the distance between the marine and the baneling is 4 to have a head start.
2. Is behavior better or ability better? and how to create that behavior?
Thanks
0
how to make a casterIsNotSelectedByItsOwnerPlayer validator?
0
@Kueken531: Go
Thanks for the help, I'll experiment a bit, see if I can create this ability. I might need more help.
0
@Kueken531: Go
Thats what I worry about, too, and I would be more than happy to take the data approach, but I don't know how. So basically what I want to do is to let units micro themselves on their own. And I'm starting with marines. So whenever a marine is NOT selected by its owner who is also a user player (not a computer), and it sees a baneling coming into its range (4), it would run away and should keeping running until all banelings in its range either died or left. If more than one baneling is in its range, than it should calculate the best angle first, then start running. If the baneling gets too close (range of 3) and the marine has stimpack and is not currently under the effect of stimpack, then it would use stimpack, mimicking what a real person would do when a baneling is heading your way. Can you or anybody show me how to do this? Thanks.
0
@zeropoints: Go
That's pretty much where I'm stuck, too. Though I know how to identify any unit with baneling, in case you want to know, just compare type of triggering unit with baneling in conditons.
0
@Abion47: Go
thanks for the reply. Can you be more specific? I have never created any behavior before, or used any in conjunction with triggers. In fact, it's the first time I try to use the starcraft 2 editor. Can you explain more? Thanks
0
I want to create an event that will detect when an enemy baneling enters the range of 4 of any marine, and order that marine to pull back. How to do this? I'm new to this. I found the event of Unit enters/leaves range of unit, but I don't know what to do from there. Can someone help me? thanks!