This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
So I have Zerglings spawning at each players base every 2 seconds for up to 8 players. What I want is for there to be a limit of 200 Zerglings per player (because there's a unit limit).
Here's what I have so far:
Zergling Spawns Player 1 Events Timer - Every 2.0 seconds of Game Time Conditions (Status of player 1) == Playing 0 <= Zerglings Player 1 <= 200 Actions Unit - Create 1 Zergling for player 1 at (Center of Player 1 Spawn) using default facing (No Options) Variable - Modify Zerglings Player 1: + 1
Zergling killed Conditions (Unit type of (Triggering unit)) == Zergling Actions General - If (Conditions) then do multiple (Actions) If Then Else General - Else if (Conditions) then do (Actions) Else If (Owner of (Triggering unit)) == 1 Then Variable - Modify Zerglings Player 1: - 1
Both of which repeat for multiple players. But when I'm in-game, they just don't spawn anymore.
Resolved:
Quote from SystemSe7en: Go@Artanis186: Go Now that I look at it, I think it's because of your "0".
@Artanis186: Go
Now that I look at it, I think it's because of your "0".
Spawn Events Timer - Every 2.0 seconds of Game Time Local Variables Conditions Zerglings (P1) < 200 Actions Unit - Create 1 Zergling for player 1 at Point 001 facing 270.0 degrees (No Options) Variable - Set Zerglings (P1) = (Zerglings (P1) + 1) Death Events Unit - Any Unit dies Local Variables Conditions (Unit type of (Triggering unit)) == Zergling (Owner of (Triggering unit)) == 1 Actions Variable - Set Zerglings (P1) = (Zerglings (P1) - 1)
Quote from SystemSe7en: GoThat works perfectly.
That works perfectly.
When does it stop spawning?
Also, I think your ling condition should be 0 <= Zerglings Player 1 < 200, otherwise it'll spawn 201 zerglings.
@SystemSe7en: Go
It just doesn't spawn at all. And how do I switch it from <= to <? Or should I just switch the number to 199?
EDIT: I tested with the integer condition removed and it's definitely the condition. But I have no idea how to fix it. :\
And again... how do I removed/modify the <= stuff? :|
You select the condition. It has an operator field where you can select whether you want <= or < or == or whatever else there is.
I dont get your point here, Could you atleast specify the trigger itself?
So I have Zerglings spawning at each players base every 2 seconds for up to 8 players. What I want is for there to be a limit of 200 Zerglings per player (because there's a unit limit).
Here's what I have so far:
Both of which repeat for multiple players. But when I'm in-game, they just don't spawn anymore.
Resolved:
@Artanis186: Go
When does it stop spawning?
Also, I think your ling condition should be 0 <= Zerglings Player 1 < 200, otherwise it'll spawn 201 zerglings.
@SystemSe7en: Go
It just doesn't spawn at all. And how do I switch it from <= to <? Or should I just switch the number to 199?
EDIT: I tested with the integer condition removed and it's definitely the condition. But I have no idea how to fix it. :\
@Artanis186: Go
Now that I look at it, I think it's
because of your "0".
That works perfectly.
And again... how do I removed/modify the <= stuff? :|
You select the condition. It has an operator field where you can select whether you want <= or < or == or whatever else there is.
I dont get your point here, Could you atleast specify the trigger itself?