skripte in Ursprungsordner

This commit is contained in:
alzer
2025-05-10 00:11:46 +02:00
parent e5e43dda8a
commit 8015566cce
2979 changed files with 327 additions and 326 deletions
+14
View File
@@ -0,0 +1,14 @@
let item = await fromUuid("Compendium.wfrp4e-core.items.SYjWiKDzMS6CtROJ")
let data = item.toObject();
data.system.location.key = this.item.system.location.key
if (this.item.system.location.key == "rArm")
{
data.system.location.value = "Right Hand"
data.system.location.key = "rHand"
}
else if (this.item.system.location.key == "lArm")
{
data.system.location.value = "Left Hand"
data.system.location.key = "lHand"
}
this.actor.createEmbeddedDocuments("Item", [data])