Hi all, Ive been trying to make a mini CTF style map for sc but am having trouble with a few triggers (cuzz im a noob) What I would like to do is when a players only scv is killed, a replacement is created at location x, and the process repeats everytime they lose an scv, they are given another one. Any info?
And also, if anyone knows how to setup a trig so that when a player brings a neutral flag to their side of the field (their location), All players units are killed, that team is given a point for the flag capture, and then all units (including the flag) are respawned to start the nxt round. Any info would help, thanks.
Need help with unit respawn trig
-
- Terran Settler (Unemployed)
- Posts: 2
- Joined: Wed Jan 07, 2009 1:43 pm
- Lavarinth
- Xel'naga Administrator
- Posts: 6539
- Joined: Wed Aug 16, 2006 5:21 pm
- Location: His Ashworld Planet
Re: Need help with unit respawn trig
Condition:
Current player has 0 Terran SCVs at Anywhere.
Action:
Create 1 Terran SCV for current player at location.
Preserve Trigger.
That should be one way. Could get a bit more technical, too, with more triggers if you'd like:
Condition:
'P1-SCV-Dead' is Off.
Action:
Create 1 Terran SCV for current player at location.
Wait 1 second.
Turn 'P1-SCV-Dead' on.
Preserve trigger.
Condition:
Current player has 0 Terran SCVs at Anywhere.
Action:
Turn 'P1-SCV-Dead' off.
Preserve trigger.
Although this one might have to be player based, such as eight switches for eight players, while the first may work if you check it off for all players and make it "current player."
For the flag situation:
Condition:
(I think there should be an any player option) Any player brings at least 1 Flag (forget name) to location Flag Capture.
Action:
Kill All Players Terran SCVs at Anywhere.
Move Flag to location Flag Capture to Flag Starting Location.
Preserve trigger.
This is all just off the top of my head, but I think it should work.
Current player has 0 Terran SCVs at Anywhere.
Action:
Create 1 Terran SCV for current player at location.
Preserve Trigger.
That should be one way. Could get a bit more technical, too, with more triggers if you'd like:
Condition:
'P1-SCV-Dead' is Off.
Action:
Create 1 Terran SCV for current player at location.
Wait 1 second.
Turn 'P1-SCV-Dead' on.
Preserve trigger.
Condition:
Current player has 0 Terran SCVs at Anywhere.
Action:
Turn 'P1-SCV-Dead' off.
Preserve trigger.
Although this one might have to be player based, such as eight switches for eight players, while the first may work if you check it off for all players and make it "current player."
For the flag situation:
Condition:
(I think there should be an any player option) Any player brings at least 1 Flag (forget name) to location Flag Capture.
Action:
Kill All Players Terran SCVs at Anywhere.
Move Flag to location Flag Capture to Flag Starting Location.
Preserve trigger.
This is all just off the top of my head, but I think it should work.
- - Lavarinth
Campaign Creations Administrator
Campaign Creations Administrator
-
- Terran Settler (Unemployed)
- Posts: 2
- Joined: Wed Jan 07, 2009 1:43 pm
Re: Need help with unit respawn trig
Thanks for the help, the first part for SCV's works perfectly. But im still having trouble with the flag. My original trig setup looks pretty much identical to what u suggested but it didnt work. However when i replaced the flag (+flag trigs) with a psi emitter it worked just fine, im not sure what it is about the flag that didnt work correctly. It might seem odd to have a CTF map using a psi emitter instead of a flag but w/e works. Thanks again.
- Lavarinth
- Xel'naga Administrator
- Posts: 6539
- Joined: Wed Aug 16, 2006 5:21 pm
- Location: His Ashworld Planet
Re: Need help with unit respawn trig
There might be different kinds of flags or it might have something to do with what force or player it's set to.
- - Lavarinth
Campaign Creations Administrator
Campaign Creations Administrator