foundryvtt-wh4-lang-fr-fr/scripts/w6tr8mWy0ZSUkHLt.js

7 lines
318 B
JavaScript
Raw Normal View History

2024-10-08 20:52:09 +02:00
const uuids = [
"Compendium.wfrp4e-core.items.Item.77p3QRKgFWakkndF", // Blather
"Compendium.wfrp4e-core.items.Item.b4x1qEWcevX7xK58", // Schemer
];
const items = await Promise.all(uuids.map(uuid => fromUuid(uuid)));
await this.actor.createEmbeddedDocuments("Item", items, {fromEffect: this.effect.id});