Modify HP

Modify HP

Adjust or restore a user's health

Fields

FieldTypeRequiredDescription
operationenum: add | subtract | set | restoreyesrestore sets HP to the guild's default HP and needs no amount.
amountnumber (as string) or {path}noRequired unless operation is 'restore'. Capped at 1,000,000.
triggerComaIfZerobooleannoDefaults to true; fires the coma flow if HP would hit 0.
targetUserIdstring or {path}noCross-user write target.

Example

{
  "id": "01H8XGJVBWX7Y5Z3K9M2N4P6Q1",
  "type": "modify_hp",
  "operation": "add",
  "amount": "10",
  "triggerComaIfZero": true
}

Did this page help you?