I simply want to make a trigger which will detect the quantity of a specific unit in a specific region, but can't seem to find anything about such triggers...
For example, if you bring X marines at location Y it does Z actions.
Please help me:P I want my map done before the game comes out! :)
you would simply use your own Regions there, and the unit your talking about.
step by step of how to do this.
(editing to add step by step 2 seconds)
Make a new trigger
add a new even, when the box opens up, on the left side select unit, scroll down till you find "unit Enter/leaves region"
Click ok, then on the bottom of the screen you should see the information you can fill out, simply where it says "region:conver cricle to region" by defualt, just click that and change it to your own region
next, go down to conditions, make a new condition type :Comparison
Now on left side find: "number of unites in unit group:
Next where it asks for the unit group, select that, go to functions and find "Unites in region matching condition" once again fill this out with your information, and BANG g2g =)
if you need more information than that let me know =)
Thanks a lot:P It is working fine. I had found the Number of living unit trigger, but I didn't know I could change the unit group to a unit quantity in a region! Thanks a lot again! Now I can continue my map!
I simply want to make a trigger which will detect the quantity of a specific unit in a specific region, but can't seem to find anything about such triggers...
For example, if you bring X marines at location Y it does Z actions.
Please help me:P I want my map done before the game comes out! :)
Nice website BTW
Use conditions, not events. Use a comparison condition.
Edit: You will always need to begin your trigger with an event, but you may make it periodic or simple in some other fashion.
you would simply use your own Regions there, and the unit your talking about.
step by step of how to do this.
(editing to add step by step 2 seconds)
Make a new trigger
add a new even, when the box opens up, on the left side select unit, scroll down till you find "unit Enter/leaves region"
Click ok, then on the bottom of the screen you should see the information you can fill out, simply where it says "region:conver cricle to region" by defualt, just click that and change it to your own region
next, go down to conditions, make a new condition type :Comparison
Now on left side find: "number of unites in unit group:
Next where it asks for the unit group, select that, go to functions and find "Unites in region matching condition" once again fill this out with your information, and BANG g2g =)
if you need more information than that let me know =)
Thanks a lot:P It is working fine. I had found the Number of living unit trigger, but I didn't know I could change the unit group to a unit quantity in a region! Thanks a lot again! Now I can continue my map!
@d3vilkin: Go
good luck =) post if you have any more problems.