| 08-11-2002, 10:06 PM | #1 |
Okay, here`s my trigger: Events: Map Initialization Conditions: (Number of units in (Units owned by Player 10 (Light Blue) of type Black Spider) Equal to 0 Actions: Create 10 Black Spider for Player 10 (Light Blue) at (Center of Creeps BlackSpider LVL 1 <gen> facing Default building facing degrees This trigger WILL create the 10 Black Spiders for Player 10 when the map starts, but when they`re all dead, nothing happens. Now, I want it so when the player comes in and kills those 10 Black Spiders owned by Player 10 that it will create another 10. However, I don`t want it to constantly be creating more and more so there are, like, 100 or whatever; I want it to wait until the original 10 are dead. Thanks, Nikolae |
| 08-11-2002, 10:17 PM | #2 |
its always on preserve trigger its your event thats the problem as it'll only luanch once. Change it to periodic event. |
| 08-11-2002, 10:18 PM | #3 |
I've tried that, and it still doesn't work. |
| 08-11-2002, 10:21 PM | #4 |
Guest | make it a periodic event every 1 sec it MUST work |
| 08-11-2002, 11:09 PM | #5 |
Aha. Your problem is that dead units still count as units. You should make it so that the 10 spiders are in a unit group, and when a spider dies a trigger removes it from the group. Then when the group has 0 units, it'll create another 10. |
| 08-12-2002, 03:07 AM | #6 |
Guest | Create the spiders one at a time. Set each spider to a variable. When each of the 10 variables is dead, the condition will be met. Don't have "Map Initialization" as the event. Make the event periodic timer... I guess. In some cases, use "Trigger - Turn on (this trigger)" to be equal to SC's Preserve Trigger. |
| 08-12-2002, 03:08 AM | #7 |
Just make them explode on death. That way they leave no corpses. |
| 08-12-2002, 07:41 AM | #8 |
Or do this: Have the trigger event be periodic every 1 second Conditions: Unit group X is empty Actions: Create spider add spider to unit group X Repeat for each spider, Dead units are no longer parts of unit groups |
