I follow what you say Terhonator and I finally succeed to make it work. I think all is done correctly.
Thx terhonator for your explanation and your test map it helped me a lot.
Thank you Monictor to also try to help me (to specify each player can control more than 1 unit).
Thank you for your time, yeah I am not really good with triggers but I already play around with them a little bit, I am not a complete newbie ;)
I try your idea, first I create 2 variables, one for each team (integer, value 0) and I create for both team a trigger to be equal to the number of players in the team to function in all 3 modes (1v1, 2v2, 3v3) the trigger looks like this for team 1 :
Events : map creating
Actions : if number of players in team 1 = 1
then define variable team 1 = 1
if number of players in team 1 = 2
then define variable team 1 = 2
if number of players in team 1 = 3
then define variable team 1 = 3
the 2nd trigger for team 1 looks like this :
Events : any unit dies
Conditions : Or and I put each special triggering unit
Actions : if owner of triggering unit equal owner of triggering unit in team 1 (dont know if work)
then variable modify team 1 : -1
if team 1 variable = 0
then pick each player in team 1 and do end game in defeat for players picked
then pick each player in team 2 and do end game in victory for players picked
That didnt work. I dont know which part is good, could you tell me where are the mistakes?
(I also need to add events if players leaves the game but for now I want to finish this)
I need some help with victory and defeat conditions in my map.
My map is playable in 1v1, 2v2 and 3v3 and at the start each player chose one special unit (with massive attribut) in a dialog. What I want is when all specials units of a team are destroyed, the team loses and the other team wins.
So if the game is played in 3v3, each player of a team must lose their special unit to lose the game (In 3v3 if only two player, in the same team, lose their special unit the game still continues until the third player of that team lose his special unit or the other team lose all their specials units).
I try multiple times but I cant find something that work.
The last trigger I try was something like this, if their is no units with massive condition on the map for team 1, each player in team 1 is defeated and each player in team 2 win and if their is no units with massive condition on the map for team 2, each player in team 2 is defeated and each player in team 1 win.
How should I do this guys? Anyone as an idea and can help me out?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Yeah thank you again ;)
I follow what you say Terhonator and I finally succeed to make it work. I think all is done correctly. Thx terhonator for your explanation and your test map it helped me a lot.
Thank you Monictor to also try to help me (to specify each player can control more than 1 unit).
@Terhonator: Go
Thank you for your time, yeah I am not really good with triggers but I already play around with them a little bit, I am not a complete newbie ;)
I try your idea, first I create 2 variables, one for each team (integer, value 0) and I create for both team a trigger to be equal to the number of players in the team to function in all 3 modes (1v1, 2v2, 3v3) the trigger looks like this for team 1 :
the 2nd trigger for team 1 looks like this :
That didnt work. I dont know which part is good, could you tell me where are the mistakes? (I also need to add events if players leaves the game but for now I want to finish this)
I need some help with victory and defeat conditions in my map. My map is playable in 1v1, 2v2 and 3v3 and at the start each player chose one special unit (with massive attribut) in a dialog. What I want is when all specials units of a team are destroyed, the team loses and the other team wins. So if the game is played in 3v3, each player of a team must lose their special unit to lose the game (In 3v3 if only two player, in the same team, lose their special unit the game still continues until the third player of that team lose his special unit or the other team lose all their specials units).
I try multiple times but I cant find something that work. The last trigger I try was something like this, if their is no units with massive condition on the map for team 1, each player in team 1 is defeated and each player in team 2 win and if their is no units with massive condition on the map for team 2, each player in team 2 is defeated and each player in team 1 win.
How should I do this guys? Anyone as an idea and can help me out?