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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南