I'd like to make a Trigger which says if a specific unit dies, I want X amount of Swarmlings to spawn and I don't want them to stop until another specific unit dies. With SC1 I'd just preserve Trigger but I don't see that in the SC2 Map Editor. How would this be done in the SC2 Map Editor?
(Also, something a little off-topic, I'm trying to figure out how to make a text message appear, but only to a specific player. I can only seem to make text messages appear to all players. I imagine it's a Condition that needs to be added but I can't figure it out. Any help would be appreciated.)
Hmm.. Regarding the Text Message I can only seem to select All Players. Not really any Conditions I can pick out on this one for selecting just Player 1...
You can make a trigger with unit dies, condition specific unit, then make a while loop with a wait in it (not a huge fan of this, but if it is done only once its fine) that spawns a unit until the while loop's conditions are met
If you go to value for the text message part, can't you just type in which player number you want to show it for? And every trigger is preserved by default, if you only want it running once then you can add a trip with a boolean or you can just turn the trigger off.
Nope, it takes Player Group as parameter, not Player, which is why you have to use Convert Player to Player Group (which just returns a Player Group containing the one Player).
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'd like to make a Trigger which says if a specific unit dies, I want X amount of Swarmlings to spawn and I don't want them to stop until another specific unit dies. With SC1 I'd just preserve Trigger but I don't see that in the SC2 Map Editor. How would this be done in the SC2 Map Editor?
(Completed. Thanks)
(Also, something a little off-topic, I'm trying to figure out how to make a text message appear, but only to a specific player. I can only seem to make text messages appear to all players. I imagine it's a Condition that needs to be added but I can't figure it out. Any help would be appreciated.)
@Mesden: Go
In SC2, all triggers are "preserved". Every single time the event is run, the trigger runs.
Unless the conditions aren't met.
So make a condition.
Hmm.. Regarding the Text Message I can only seem to select All Players. Not really any Conditions I can pick out on this one for selecting just Player 1...
@Mesden:
Under the group selection for the text message, select "convert player group to player". This will allow you to select a specific player.
Can someone explain what it meant to "preserve" a trigger? I never made maps in SC1.
@Vexal: Go
Triggers would basically automatically turn themselves off in SC1 after they ran, from what I understand.
Yes, triggers would only run once, unless you added an action called Preserve Trigger.
I spent so much time on that editor... It was like my first programming lesson.
@Nashadun: Go
You can make a trigger with unit dies, condition specific unit, then make a while loop with a wait in it (not a huge fan of this, but if it is done only once its fine) that spawns a unit until the while loop's conditions are met
If you go to value for the text message part, can't you just type in which player number you want to show it for? And every trigger is preserved by default, if you only want it running once then you can add a trip with a boolean or you can just turn the trigger off.
@Atl0s: Go
Nope, it takes Player Group as parameter, not Player, which is why you have to use Convert Player to Player Group (which just returns a Player Group containing the one Player).