Ever needed a small trigger, maybe only a few lines of coding? Well i'll post things that i know here, that are useful for others, things that don't require a whole tutorial, but can be placed in a Large tutorial.
This will select any unit that is closest to it, and attck it. You could probably add a reset trigger like a timer to make it constantly switch the closest target.
Enter Region, Constantly Spawn Units, Unit Leaves Region, Stop
This can be pretty cool to use if players need to select the race before the game, you can even make custom races here if you wanted to add more units.
Ever needed a small trigger, maybe only a few lines of coding? Well i'll post things that i know here, that are useful for others, things that don't require a whole tutorial, but can be placed in a Large tutorial.
Attack Nearest Unit
This will select any unit that is closest to it, and attck it. You could probably add a reset trigger like a timer to make it constantly switch the closest target.
Enter Region, Constantly Spawn Units, Unit Leaves Region, Stop
Variables used - 1 (Unit Group)
All the above trigger is, is to spawn units when a unit enters a region, its very simple.
Now this is the trigger that checks if the player is still in the Region AND that there are no zerglings left.
Spawn a Unit Depending on Players Race
This can be pretty cool to use if players need to select the race before the game, you can even make custom races here if you wanted to add more units.
Single File Unit Spawn
This is great for TD's, you can set each Unit to a variable, so you only ever need 1 spawn trigger.
I will constantly update this, Hopefully, so it can be full of Useful Minor Triggers in the future.