tactics
Reads and sets a party member’s tactics (what they do on their own in a fight), the way the tactics screen does, with no screen open and nobody selected.
action is one of:
- look: returns
slots(how many there are),ai(whether the follower’s tactics run),preset(null when none is chosen),behaviour, andtactics: each slot in order withenabled,target,condition,commandand theabilityoritemit uses. An unset slot isempty. - choices: returns what the screen offers this party member: the
targets; withtarget, itsbaseConditions; withbaseConditionas well, theconditions,actions,abilitiesanditems. - set: sets slot
slottotarget,conditionandcommand, each by number, label or name from what choices offers, withabilityoritemfor the command andenabled. Returns the slot as the game reads it back and whether the changetook; one the screen would not offer is refused, saying which part. - clear: empties slot
slotand returns whether it iscleared. Use it to put a party member’s tactics back as you found them. - preset: loads preset
presetof typepresetType(0 the AI off, 1 a custom slot, 2 one of the game’s, the default) and returns the slots.
Arguments
| Name | Type | Required | What |
|---|---|---|---|
action | "look" | "choices" | "set" | "clear" | "preset" | yes | What to do. |
id | string | The party member, by creature id. Default: the creature you control. | |
slot | integer (≥ 1) | For set and clear: the slot, counting from 1. Default 1. | |
target | any | For choices and set: a target type, by number, label or name. | |
baseCondition | any | For choices: a base condition, by number, label or name. | |
condition | any | For set: a condition, by number, label or name. | |
command | any | For set: the action to take, by number, label or name. | |
ability | integer | For set: the id of the ability the action uses, or the slot a jump goes to. | |
item | string | For set: the id of the item the action uses. | |
enabled | boolean | For set: whether the slot is on. Default true. | |
preset | integer | For preset: the custom slot or the place among the game’s presets, from 0. Default 0. | |
presetType | integer | For preset: 0 the AI off, 1 a custom slot, 2 one of the game’s. Default 2. |
Call it as tactics over MCP, or POST /api/tool/tactics with the arguments as JSON.