I'm trying to create a Team Victory /Defeat trigger but I can't figure it out.
each team has 3 players and there is only 4 teams so a total of 12 players.
Team 1 has player 1,2 & 3 Team 2 has 4,5 & 6 and so on.
That all depends. If team 1 isn't alive, are they still in the game? Do they have any units? You need to set up some kind of system to determine a player state. Off the top of my head (and without going into more detail about whats going on in your map) I would say you need to set up a Boolean variable for each team that is set on map initialization.
You would also have to create a trigger that assigns players to a Player Group Variable.
SetupPlayerGroupsEventsGame-MapinitializationLocalVariablesConditionsActions------- Team 1PlayerGroup-Addplayer1toPlayerGroups[0]PlayerGroup-Addplayer2toPlayerGroups[0]PlayerGroup-Addplayer3toPlayerGroups[0]------- Team 2PlayerGroup-Addplayer4toPlayerGroups[1]PlayerGroup-Addplayer5toPlayerGroups[1]PlayerGroup-Addplayer6toPlayerGroups[1]------- Team 3PlayerGroup-Addplayer7toPlayerGroups[2]PlayerGroup-Addplayer8toPlayerGroups[2]PlayerGroup-Addplayer9toPlayerGroups[2]------- Team 4PlayerGroup-Addplayer10toPlayerGroups[3]PlayerGroup-Addplayer11toPlayerGroups[3]PlayerGroup-Addplayer12toPlayerGroups[3]
Then do your trigger for Victory/Defeat.
TeamVicotry/DefeatEventsTimer-Every5.0secondsofGameTimeLocalVariablesConditionsActions------- Player 2 WinsGeneral-If(Conditions)thendo(Actions)elsedo(Actions)IfAndConditionsTeamAlive[0]==FalseTeamAlive[2]==FalseTeamAlive[3]==FalseThenGame-EndgameinVictoryforplayer(NumberofplayersinPlayerGroups[1])(Showdialogs,Showscorescreen)Game-EndgameinDefeatforplayer(NumberofplayersinPlayerGroups[2])(Showdialogs,Showscorescreen)Game-EndgameinDefeatforplayer(NumberofplayersinPlayerGroups[3])(Showdialogs,Showscorescreen)Game-EndgameinDefeatforplayer(NumberofplayersinPlayerGroups[0])(Showdialogs,Showscorescreen)Else
This is just a rough outline of triggers that I threw together and wont work if you plug them in. Hopefully you know enough about triggers to understand what it is I am trying to explain. If you need more help I can elaborate.
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
Hello Everyone,
I'm trying to create a Team Victory /Defeat trigger but I can't figure it out. each team has 3 players and there is only 4 teams so a total of 12 players. Team 1 has player 1,2 & 3 Team 2 has 4,5 & 6 and so on.
How do I make it so the last team alive wins.
help.
That all depends. If team 1 isn't alive, are they still in the game? Do they have any units? You need to set up some kind of system to determine a player state. Off the top of my head (and without going into more detail about whats going on in your map) I would say you need to set up a Boolean variable for each team that is set on map initialization.
Map Initialization
Then, place whatever your condition is for a team being dead in a trigger and set the action to set the variables to False.
You would also have to create a trigger that assigns players to a Player Group Variable.
Then do your trigger for Victory/Defeat.
This is just a rough outline of triggers that I threw together and wont work if you plug them in. Hopefully you know enough about triggers to understand what it is I am trying to explain. If you need more help I can elaborate.
@bulletbutter: Go
Thanks that's exactly what I needed to know.