Random team trigger

mastah_

New Member
Reaction score
5
i need help where to set teams are random so far i've tried to do it if/then/else:
if - random number between 1-2 equal to 1
then - ??
else - ?

so this dosn't seem to work ...anyhelp appreciated! :)\

also any way to make sure its even teams
 

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
Create 3 player groups,
Team1
Team2
All_Players

Code:
Melee Initialization
    Events
        Map initialization
    Conditions
    Actions
        Set All_Players = (All players)
        For each (Integer A) from 1 to 6, do (Actions)
            Loop - Actions
                For each (Integer B) from 1 to 2, do (Actions)
                    Loop - Actions
                        Set Random_Player = (Random player from All_Players)
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                (Integer B) Equal to 1
                            Then - Actions
                                Player Group - Add Random_Player to Team1
                            Else - Actions
                                Player Group - Add Random_Player to Team2
                        Player Group - Remove Random_Player from All_Players
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top