Initiative Manage
initiative_manageManage combat initiative for your TTRPG campaign: add or remove tokens, roll or set initiative values, reorder turns, and start, advance, or end rounds.
Instructions
先攻管理(全 DM-only)。 action: add / remove / roll / set / reorder / start / next / end。
add: token_id + map_id
remove: token_id
roll: token_id + map_id(expression 可选;服务器按战役系统自行推导骰式—— 5e=敏捷+卡面 initiativeBonus,PF2e 用 usedStat,SR6 用自身先攻骰,客户端给的 expression 仅在无法推导时兜底。系统门:CoC7e 不骰先攻、DEX 排序,请 add 后直接 start,或用 set 手动定值)
set: token_id + map_id + value(手动定先攻值,服务器按值重排序)
reorder: ordered_token_ids(自定义回合顺序,覆盖值排序) 状态经 initiative_state / events_poll 回收。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | ||
| action | Yes | ||
| map_id | No | ||
| token_id | No | ||
| expression | No | ||
| character_name | No | ||
| ordered_token_ids | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||