FlexMatch for team battle royale ruleset

0

Hello,

We have a Battle Royale game supporting 10 teams of 3 players each for a total of 30 players per match.

We want to be able to start matches with less than 10 teams if they have been waiting for a long time.

For example, if there are 8 teams who have been matchmaking for 5 minutes, we want to be able to start the game with those 8 teams if 10 minutes have passed and no other team has joined.

We have looked into Expansions, but we can't reduce the "Quantity" of teams. This forces us to only start matches with at least 10 teams.

This is our current rule set:

{
    "name": "trios_battle_royale",
    "ruleLanguageVersion": "1.0",
    "playerAttributes": [{
        "name": "skill",
        "type": "number",
        "default": 10
    }],
    "teams": [{
        "name": "t1",
        "minPlayers": 3,
        "maxPlayers": 3,
        "quantity": 10
    }]
}

How do we start matches with less than 10 teams?

ray
asked 2 years ago279 views
1 Answer
0

manually create all 10 teams

{
    "name": "trios_battle_royale",
    "ruleLanguageVersion": "1.0",
    "playerAttributes": [{
        "name": "skill",
        "type": "number",
        "default": 10
    }],
    "teams": [{
        "name": "t1_0",
        "minPlayers": 3,
        "maxPlayers": 3,
    },
    {
        "name": "t1_1",
        "minPlayers": 3,
        "maxPlayers": 3,
    },
    {
        "name": "t1_2",
        "minPlayers": 3,
        "maxPlayers": 3,
    },
    {
        "name": "t1_3",
        "minPlayers": 3,
        "maxPlayers": 3,
    },
    {
        "name": "t1_4",
        "minPlayers": 3,
        "maxPlayers": 3,
    },
    {
        "name": "t1_5",
        "minPlayers": 3,
        "maxPlayers": 3,
    },
    {
        "name": "t1_6",
        "minPlayers": 3,
        "maxPlayers": 3,
    },
    {
        "name": "t1_7",
        "minPlayers": 3,
        "maxPlayers": 3,
    },
    {
        "name": "t1_8",
        "minPlayers": 3,
        "maxPlayers": 3,
    },
    {
        "name": "t1_9",
        "minPlayers": 3,
        "maxPlayers": 3,
    }]
},
  "expansions": [
      {
          "target": "teams[team_9].minPlayers",
          "steps": [
              {
                  "waitTimeSeconds": 300,
                  "value": 0
              }
          ]
      },
      {
          "target": "teams[team_8].minPlayers",
          "steps": [
              {
                  "waitTimeSeconds": 600,
                  "value": 0
              }
          ]
      },
  ]
}
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions