Last active
December 22, 2024 01:16
-
-
Save 7H3LaughingMan/05cc4a3494d1b8d91d361d551976e116 to your computer and use it in GitHub Desktop.
Alchemist Quick Vial
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (!actor || !item) { | |
| return; | |
| } | |
| const versatileVial = await fromUuid( | |
| "Compendium.pf2e.equipment-srd.Item.ljT5pe8D7rudJqus" | |
| ); | |
| const createdItem = await actor.createEmbeddedDocuments("Item", [ | |
| versatileVial, | |
| ]); | |
| createdItem[0].update({ | |
| system: { | |
| equipped: { carryType: "held", handsHeld: 1 }, | |
| level: { value: actor.level }, | |
| }, | |
| }); | |
| item.toChat(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment