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
已提问 2 年前287 查看次数
1 回答
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
              }
          ]
      },
  ]
}
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则