Skip to content
HALOWERK

Gamingwerk

game initiative tie priority

Order supplied game units by initiative and rotating seat priority for exact ties.

POST https://gaming.halowerk.com/v1/game-initiative-tie-priority

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
seatsintegerYes
priority_seatintegerYes
unitsarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "seats": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "priority_seat": {
      "type": "integer",
      "minimum": 0,
      "maximum": 99
    },
    "units": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1
          },
          "seat": {
            "type": "integer",
            "minimum": 0,
            "maximum": 99
          },
          "initiative": {
            "type": "number",
            "minimum": -1000000,
            "maximum": 1000000
          }
        },
        "required": [
          "id",
          "seat",
          "initiative"
        ],
        "additionalProperties": false
      },
      "maxItems": 200,
      "minItems": 1
    }
  },
  "required": [
    "seats",
    "priority_seat",
    "units"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "seats": 3,
  "priority_seat": 2,
  "units": [
    {
      "id": "unit_A",
      "seat": 0,
      "initiative": 10
    },
    {
      "id": "unit_B",
      "seat": 2,
      "initiative": 10
    }
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’