Modify HP
Modify HP
Adjust or restore a user's health
Fields
| Field | Type | Required | Description |
|---|---|---|---|
operation | enum: add | subtract | set | restore | yes | restore sets HP to the guild's default HP and needs no amount. |
amount | number (as string) or {path} | no | Required unless operation is 'restore'. Capped at 1,000,000. |
triggerComaIfZero | boolean | no | Defaults to true; fires the coma flow if HP would hit 0. |
targetUserId | string or {path} | no | Cross-user write target. |
Example
{
"id": "01H8XGJVBWX7Y5Z3K9M2N4P6Q1",
"type": "modify_hp",
"operation": "add",
"amount": "10",
"triggerComaIfZero": true
}Updated about 14 hours ago
Did this page help you?
