1. Create a global variable with a timer where the triggers are listed.
2. Create that trigger that sets the timer and creates a timer window and makes it visible for all players.
3. Create a trigger that triggers, whenever the timer runs out and then spawn stuff.
In SC2, you can have multiple timers and you can move the timer UI around. That's the main difference to SCBW in this case where you only had 1 timer with its UI visible for all players on 1 specific spot on the screen.
Lol, so true on that, I came directly from the brood war editor myself a month or two ago. I am not on my home computer so I can't look too much up, but should look something like Events: Any unit dies. Conditions: Unit is of Unit Type (Put unit type here) Actions: Wait 3 minutes, Create Unit at Point. Just be careful with the wait actions, it can cause some bad sort of lag as you might recall from the brood war editor.
Another alternative would be to do it as a check every few minutes on a timer, something like: Events: 3 minutes of game time has elapsed Conditions: Player 15 (or whatever your bad guy player is) commands some # or less of said unit. Actions: Create Unit at Point.
This would do roughly the same thing, make the respawn a bit more random, and be far less lag overall. This could be used for multiple types of units too.
Greetings guys.
I'm trying to make the following trigger:
Effect: UNIT DIES
Action: COUNTDOWN TIMER > CREATE UNIT
Basically I'm trying to create a trigger when a certain unit is destroyed something re spawn in couple of minutes. Do you know how to do it please? :(
This was very easy to do on Starcraft 1 but now its freaking hard!
1. Create a global variable with a timer where the triggers are listed.
2. Create that trigger that sets the timer and creates a timer window and makes it visible for all players.
3. Create a trigger that triggers, whenever the timer runs out and then spawn stuff.
In SC2, you can have multiple timers and you can move the timer UI around. That's the main difference to SCBW in this case where you only had 1 timer with its UI visible for all players on 1 specific spot on the screen.
@Sephirothusa: Go
Lol, so true on that, I came directly from the brood war editor myself a month or two ago. I am not on my home computer so I can't look too much up, but should look something like Events: Any unit dies. Conditions: Unit is of Unit Type (Put unit type here) Actions: Wait 3 minutes, Create Unit at Point. Just be careful with the wait actions, it can cause some bad sort of lag as you might recall from the brood war editor.
Another alternative would be to do it as a check every few minutes on a timer, something like: Events: 3 minutes of game time has elapsed Conditions: Player 15 (or whatever your bad guy player is) commands some # or less of said unit. Actions: Create Unit at Point.
This would do roughly the same thing, make the respawn a bit more random, and be far less lag overall. This could be used for multiple types of units too.
Hope this helps!
I'm making a trigger. Give me a few min to make and debug it.
Event:
Any Unit dies
Condition:
Type of Unit (Triggering Unit) = Your Unit
Actions:
Wait X seconds
Create Unit(s)
try using a local Integer (Variable)
then use "While"
Set Timer to 30 sec
While
-Timer != 0
-Set Timer to (Timer - 1)
then revive or create unit again
dont use this if you plan on spamming units.. it might lag on bnet
30 to 60 units max...
Give this a try.
Thanks so much guys! I'm at work right now and as soon as I get home i'll try that!
Thanks once again, I was trying to make it this morning without success, frustrating! lol
Thats awesome! thanks so much :)