Manage active effects
manage-effectsCreate, update, or delete active effects on actors or items in Foundry VTT, with read-back validation and dropped-field reporting.
Instructions
Create, change or delete an active effect on an actor, or on an item that actor carries. The effect fields go to Foundry as given, without game system rules; Foundry drops unknown fields, and the result lists every field that was dropped or stored differently. Find effect ids with get-character (effects of the actor) or get-character-entity (effects of an item). An effect that lies on an item is changed there, with parentType "item"; parentType "actor" never touches it. create and update need the actor permission "create and change", delete needs "create, change and delete", which is off by default. Every change is read back.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | What to do with the effect. | |
| effectId | No | Id of the effect. Required for update and delete, not allowed for create. | |
| effectData | No | Effect fields for create (name required) and update (at least one; lists such as changes are replaced as a whole). Not allowed for delete. | |
| parentType | Yes | Effect on the actor itself, or on one of its items. | |
| actorIdentifier | Yes | Id, exact name (case ignored when unique) or uuid of the actor. An unlinked token actor needs its uuid. | |
| parentItemIdentifier | No | With parentType "item" only, and required there: id or name of the item. |