Team Play

SuperJakiro

New Member
Reaction score
0
I want to make my map a team play .. that has a building to defend ..
And if that building is destroyed your team will lose the game ..
How can i do that ..
Need help please :D
 

Solu9

You can change this now in User CP.
Reaction score
216
You need two player group variables and these triggers.

Trigger:
  • Set Teams
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set PlayerGroup_A = (All allies of Player 1 (Red))
      • Set PlayerGroup_B = (All allies of Player 7 (Green))


Trigger:
  • Defeat Team
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Dying unit)) Equal to Team_A_Building
        • Then - Actions
          • Player Group - Pick every player in PlayerGroup_A and do (Actions)
            • Loop - Actions
              • Game - Defeat (Picked player) with the message: Defeat!
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Dying unit)) Equal to Team_B_Building
        • Then - Actions
          • Player Group - Pick every player in PlayerGroup_B and do (Actions)
            • Loop - Actions
              • Game - Defeat (Picked player) with the message: Defeat!
        • Else - Actions


Assuming that Player 1 to 6 are allies and Player 7 to 12 are allies.
 

SuperJakiro

New Member
Reaction score
0
Thank you very much .. :D I wonder if I can use it to 4 teams .. 1 to 3 are allies , 4 to 6 are allies, 7 to 9 are allies and 9 to 12 are allies .. and then the Team that survives against all will win .. maybe i just add triggers of Set C and D .. even if it's only necessary .. BTW Thank you very much for your help .. I appreciate it ..
 

Solu9

You can change this now in User CP.
Reaction score
216
You can have all the teams you want, even cross teams if you feel like it. You just need to create Player Group variables according to the number of the teams and then extend the second trigger to you needs.
 

SuperJakiro

New Member
Reaction score
0
Yeah that was I am working on .. I already created the Map .. I use the South-West, South-East, North-East and North-West of the map as a team base .. only the Team and their building to defend is what I need .. Thank You very much ..
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top