tay300i need a trigger that will make it so when my monsters spwan every 30 seconds it will eventually stop when there is a set amount of units.
(you cant say i didnt lokk through previous posts for the answer to this because i did this time)
You should use If\Then actions with a condition that checks the amount of units currently on the map.
Also, I have found it useful to convert the trigger to custom text to reduce lag and memory leaks. Be sure to make a copy of the trigger first, just in case you have to edit it again.
Make a unit-group called enemies, and add every spawn into it. Then make an if-else function to see if that group is > X if it is, then stop the spawning trigger until X units died.