post-item-card
Post a rich dnd5e card with interactive buttons (Attack, Damage, Apply Effects) for an actor's item, feature, or spell. Roll attack or damage to chat using the dnd5e Activity system.
Instructions
Post a rich dnd5e card for an actor's item/feature/spell with WORKING buttons (Attack/Damage/Apply-Effects), or roll an attack/damage to chat. Drives the dnd5e Activity system — the only way to get interactive buttons without a module. Items with no activity return a clear reason (use send-chat-message for a plain card). GM-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | Item / feature / spell id or exact name on that actor. | |
| actor | Yes | Actor id / exact name / name-substring (or scene token id) that owns the item. | |
| action | No | use = post the usage card with its buttons (primary path); attack = roll the attack to chat; damage = roll damage to chat. attack/damage auto-targeting is degraded headless (no targets). | use |
| consume | No | Spend the item/spell resources (uses/slots). Default false = just post the card. | |
| activity | No | Optional activity id/name when the item has several (default: the first activity). | |
| critical | No | For action=damage: roll a critical (best-effort). |