apply_hp_change
Apply damage or healing to a combatant's hit points, accounting for temporary HP and maximum, and mark them down at zero. Returns new HP and status.
Instructions
改某 combatant 的 HP(delta<0 伤害:临时HP先抵、夹到0;delta>0 治疗:不超 max)。 到 0 标 status=down。返回新 hp + status。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"campaign": "<campaign>",
"encounter": "<encounter>",
"combatant_id": "<combatant_id>",
"delta": "<delta>"
},
"name": "apply_hp_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delta | Yes | ||
| variant | No | main | |
| campaign | Yes | ||
| encounter | Yes | ||
| combatant_id | Yes |