Ok I'm trying to make a map where 7 players must kill a specific unit to end the game for them all (meaning if player 2 or 5 kills the one unit players 2-8 win) but I'm having trouble figuring out what triggers or actions I should be using. I've tried using variables but it doesn't seem to be working. I've done this map before on SC1 but I wanted to remake it better because my friends beat it. One unit one kill to end the game: can anybody point me in the right direction?
Just to be sure I'm not confusing anyone this remake is for SC2 not 1 so if u have a suggestion it has to be within the SC2 galaxy editor database.
This might not be my expertise... but if you add the unit to a global variable unit group and then do a trigger like this
Event: Any unit dies
Variable:none
Condition: Unit belongs to unit group: Global variable Unit group
Action: End game in victory for player 1
End game in victory for player 2
II--
shouldent that work? but you can probably do it easier too... but this was the way that came to mind for me atleast.....
That depends on what you mean by "a specific unit".
If you create the unit using triggers, you'll want to use Mirvra's way, a global variable.
In my example below, you can use either condition if the unit is the only one of its type, or if it's a specific unit already placed on the map. In my example, I used a carrier.
EventsUnit-AnyUnitdiesLocalVariablesConditions(Triggeringunit)==Carrier[37.33,7.58]//Use this if you have a specific unit on the map(Unittypeof(Triggeringunit))==Carrier//Use this if you have a specific unit typeActionsPlayerGroup-Pickeachplayerin(Alliesofplayer(Ownerof(Killingunit)))anddo(Actions)ActionsGame-EndgameinVictoryforplayer(Pickedplayer)(Showdialogs,Showscorescreen)
This would make everyone who is allied with the unit that killed your magic game-winning unit victorious.
Hey thanks for the reply both of you guys. I'm hoping that my map now will work for all other players...unfortunately though today my drivers were completly totalled so I can't even play sc2 lol. I do have another question even though I can't use the map editor until I get a new driver for my com. Is it supposed to be a separate trigger cuz I have a unit under triggering unit already that's goin to be a key component in my map? And do I have to put the unit under one of the actions or events like where it says "Any unit dies" do I put that unit or do I leave it be?
You create entirerly new trigger for it, with events and actions. Also what do you mean by "I have a unit under triggering unit already that's goin to be a key component in my map"? Triggering units are just function to call specific unit from an event, it doesn't carry over beetwen triggers so don't worry about using it. Seve them to global variables to store em between triggers.
Thanks again for the posts. I'm keeping everything in mind from these posts about what I need to do to finish my map. Unfortunately like I said I can't do anything right now which is reeeeally annoying lol. O and thanks for clearing the trigger thingy up cuz I was really confused about that. I don't have anymore questions at the moment but feel free to continue to post anything else that may help me make my map better.
O! I have another request so if anybody out there wants to shed some light on how to do this post something. I have in my map another unit that's a hybrid reaver and it's surrounded by hunter killers and I want to make those hydras invincible until the reaver is killed so if anybody know how to do that help me out here.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Ok I'm trying to make a map where 7 players must kill a specific unit to end the game for them all (meaning if player 2 or 5 kills the one unit players 2-8 win) but I'm having trouble figuring out what triggers or actions I should be using. I've tried using variables but it doesn't seem to be working. I've done this map before on SC1 but I wanted to remake it better because my friends beat it. One unit one kill to end the game: can anybody point me in the right direction?
Just to be sure I'm not confusing anyone this remake is for SC2 not 1 so if u have a suggestion it has to be within the SC2 galaxy editor database.
This might not be my expertise... but if you add the unit to a global variable unit group and then do a trigger like this
Event: Any unit dies Variable:none Condition: Unit belongs to unit group: Global variable Unit group Action: End game in victory for player 1 End game in victory for player 2
--IIshouldent that work? but you can probably do it easier too... but this was the way that came to mind for me atleast.....
That depends on what you mean by "a specific unit".
If you create the unit using triggers, you'll want to use Mirvra's way, a global variable.
In my example below, you can use either condition if the unit is the only one of its type, or if it's a specific unit already placed on the map. In my example, I used a carrier.
This would make everyone who is allied with the unit that killed your magic game-winning unit victorious.
Hey thanks for the reply both of you guys. I'm hoping that my map now will work for all other players...unfortunately though today my drivers were completly totalled so I can't even play sc2 lol. I do have another question even though I can't use the map editor until I get a new driver for my com. Is it supposed to be a separate trigger cuz I have a unit under triggering unit already that's goin to be a key component in my map? And do I have to put the unit under one of the actions or events like where it says "Any unit dies" do I put that unit or do I leave it be?
You create entirerly new trigger for it, with events and actions. Also what do you mean by "I have a unit under triggering unit already that's goin to be a key component in my map"? Triggering units are just function to call specific unit from an event, it doesn't carry over beetwen triggers so don't worry about using it. Seve them to global variables to store em between triggers.
Thanks again for the posts. I'm keeping everything in mind from these posts about what I need to do to finish my map. Unfortunately like I said I can't do anything right now which is reeeeally annoying lol. O and thanks for clearing the trigger thingy up cuz I was really confused about that. I don't have anymore questions at the moment but feel free to continue to post anything else that may help me make my map better.
O! I have another request so if anybody out there wants to shed some light on how to do this post something. I have in my map another unit that's a hybrid reaver and it's surrounded by hunter killers and I want to make those hydras invincible until the reaver is killed so if anybody know how to do that help me out here.