
i need help on spawning certain amound of units at one location but for a certain amound of time... so like a spawn point might spawn 5 units every time they all dead but for a total of mayb 10 times so that the players cant just keep on getting more and more exp
Everytime you spawn 5 units, you can set a death count and increase it until it gets to a certain number like 10. Then if theres 10 death count for that unit, it will no longer spawn units...
btw, this should be in Assistance
Something like this:
| Trigger |
| Conditions: |
¤ Whatever conditions
|
| ¤ player accumulates at most 10 deaths for unused |
| Actions: |
¤ Wait whatever time
|
¤ Create units at location.
|
¤ Add 1 deaths of some unused unit for current player.
|
| ¤ Preserve trigger. |
Or you can just eliminate the use of switches by doing it like this:
| Trigger |
| Players: |
| ¤ Whatever |
| Conditions: |
¤ Whatever Conditions
|
| ¤ Player Suffers At Most 10 Deaths Of Unused Unit |
| Actions: |
¤ Create 5 Units At Location
|
¤ Add 1 Death Of Unused Unit for Whatever Player
|
¤ wait [time]
|
| ¤ Preserve Trigger |
Edit: lol phatdiddy you changed your trigger

Yea I realized the switch was a bad Idea, at first I had 2 triggers, one where teh switch would get cleared. But I figured a better, easier way.
| Trigger |
| Description: |
| unit spawn |
|
| Players: |
| ¤ unit spawn player |
| Conditions: |
¤ Switch "units have not respawned 10 times." is set
|
| ¤ Unit spawn player controls at most 0 units |
| Actions: |
¤ Spawn 5 unit at location "unit spawn thing"
|
¤ wait 10 milliseconds
|
¤ add 1 razing to unit spawn player
|
| ¤ preserve trigger |
And then make another trigger like this...
| Trigger |
| Description: |
| unit spawn 2 |
|
| Players: |
| ¤ unit spawn player |
| Conditions: |
¤ Unit spawn player has gained 10 razings
|
| ¤ Unit spawn player controls at most 0 units |
| Actions: |
| ¤ Clear switch "units have not respawned 10 times |
If that doesn't work than my feeble mind is stumped.
Jet yours will only spawn the units if the player has none at all. But there is no need for the switch, just basing it off the death count or whatever count you are using is enough.
They all have the right idea but umm... You want 10 death of ?? unit and stop the trigger or conutine trigger?
Well heres wut I would do...
Conditons
-Player ? suffers the death of 10 ?? units
Actions
-Create 5 ?? units at 'location'
-Wait ?? milliseconds
-Preserve Trigger
OR if u want it to stop
Dont do anything else
This is how I would make the trigger, Please Note that I have omited the trigger which acts to set the 'Create Spawning Units' Switch.
| Trigger |
| Description: |
| Spawner |
|
| Players: |
| ¤ Player X(Computer Player) |
| Conditions: |
¤ Switch 'Create Spawning Units' Is Set
|
| ¤ Player X(Computer Player) Has Suffered exactly X Deaths Of 'Unit' |
| Actions: |
¤ Create 5 'Zergling' At 'Spawn Units Here' For Player X
|
| ¤ Preserve Trigger |
(Now, if your not using turbo triggers, the units will be spawned every 2 seconds. If you are using TurboTriggers, then add a 1000Ms wait.)
-Note: The Deaths Of 'Unit' can be used for a level counter (if you need it) If you don't need it, just omit the deaths.