Add all systems effects scripts + translations
This commit is contained in:
10
reference_scripts/FciJSTq7dZsZIPgl.js
Normal file
10
reference_scripts/FciJSTq7dZsZIPgl.js
Normal file
@ -0,0 +1,10 @@
|
||||
if (args.equipped)
|
||||
{
|
||||
let item = await fromUuid("Compendium.wfrp4e-core.items.SfUUdOGjdYpr3KSR")
|
||||
let data = item.toObject();
|
||||
this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id})
|
||||
}
|
||||
else
|
||||
{
|
||||
this.effect.deleteCreatedItems();
|
||||
}
|
Reference in New Issue
Block a user