set alliance

whiteghoul

New Member
Reaction score
0
I have map 4 players and this is 1 vs 3 i want to make

how can i make alliance of 3 players computer and me as user......

anyone?.....
 

Frozenwind

System maker
Reaction score
99
Code:
Untitled Trigger 001
    Events
        Timer - Elapsed time is 0.0 Game Time seconds
    Local Variables
        IntegerA = 0 <Integer>
        IntegerB = 0 <Integer>
    Conditions
    Actions
        ------- Ally everyone
        General - For each integer IntegerA from 1 to 4 with increment 1, do (Actions)
            Actions
                General - For each integer IntegerB from 1 to 4 with increment 1, do (Actions)
                    Actions
                        General - If (Conditions) then do (Actions) else do (Actions)
                            If
                                ------- You cannot ally yourself, that's why we have this condition.
                                IntegerA != IntegerB
                            Then
                                Player - Make player IntegerB and player IntegerA treat each other as Ally With Shared Vision
                            Else
        ------- Unally player 1 with the rest (player 1 = 1, rest = 3)
        General - For each integer IntegerA from 2 to 4 with increment 1, do (Actions)
            Actions
                Player - Make player 1 and player IntegerA treat each other as Enemy

This will ally player 2, 3 and 4 whereas it unallies player 1 with the others.
 

Monsterous

In the Shadows, Lurking.
Reaction score
99
Whilst FrozenWind's trigger does work, theres a more simpler way.
If you haven't set up the computers yet, go to Player Properties, and go to 3 of the unused players, and on the right-side menu, set them to Computer.

Now, go to Game Variants, and create one. Go to the right-side menu, and click on (Game) Teams. Set it to 2 teams.
Go down, and click on (Player) Team: 2 teams, set one of the players to Team 1, and the others to Team 2.

Done :3
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top