Skip to content

Instantly share code, notes, and snippets.

@7H3LaughingMan
Last active December 22, 2024 01:16
Show Gist options
  • Select an option

  • Save 7H3LaughingMan/05cc4a3494d1b8d91d361d551976e116 to your computer and use it in GitHub Desktop.

Select an option

Save 7H3LaughingMan/05cc4a3494d1b8d91d361d551976e116 to your computer and use it in GitHub Desktop.
Alchemist Quick Vial
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