Update combatant
update-combatantUpdate a combatant's initiative, visibility, or defeated status in the Foundry VTT combat tracker, preserving the active turn on reorder.
Instructions
Set the initiative of a combatant (null clears it), hide it from players in the tracker, or mark it defeated. The acting combatant keeps its turn when the order changes. defeated is only the tracker flag; toggle-token-condition sets a condition.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hidden | No | Hidden from players in the combat tracker | |
| tokenId | No | Or the id of its token | |
| combatId | No | Id of the combat encounter, as list-combats shows it. Without it the active encounter is used. | |
| defeated | No | Defeated | |
| initiative | No | New initiative, or null to clear it | |
| combatantId | No | Id of the combatant |