Set the lineup
set_lineupSet your Comunio formation and starting eleven by tactic and player IDs, replacing the current lineup. Empty slots cost four points each, and the result reports unavailable or out-of-position players.
Instructions
Set the manager's formation and starting eleven.
This replaces the current lineup. Confirm the formation and the players with the user before calling it.
tactic is one of: 442, 343, 352, 433, 451 — read as defenders, midfielders,
strikers. Players are given by position and ids come from get_squad; the slot
numbers Comunio wants are worked out here.
A partial lineup is allowed. Comunio deducts four points for every empty slot, and the result says how many were left and what that costs.
Players who are injured or suspended can still be fielded — Comunio permits it —
so they are not refused, but the result lists them under unavailable. Check
status in get_squad before choosing.
A player can likewise be put in a slot they do not normally play. That is Comunio's
call to accept or refuse, not this tool's: the result lists them under
out_of_position, and ok says what Comunio decided.
Refused before anything is sent if the formation is not one Comunio accepts, if there are more players than the formation has room for (the extras would be dropped in silence), if a player is not in the squad, or if one appears twice.
The lineup can be set again until the matchday starts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keeper | No | ||
| tactic | Yes | ||
| strikers | No | ||
| defenders | No | ||
| midfielders | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether Comunio accepted the lineup | |
| tactic | Yes | Formation the lineup was set to | |
| fielded | Yes | Who ended up in which slot | |
| empty_slots | Yes | Slots left unfilled | |
| unavailable | Yes | Fielded players who were not ACTIVE — injured, suspended and the like | |
| penalty_points | Yes | What those empty slots cost, by Comunio's own stated rule of four points each | |
| out_of_position | No | Fielded players put in a slot other than the position they play. Reported, not refused: Comunio decides whether it accepts them |