forked from public/foundryvtt-wh4-lang-fr-fr
Add all systems effects scripts + translations
This commit is contained in:
9
reference_scripts/bQyVajMN1ETwlzvM.js
Normal file
9
reference_scripts/bQyVajMN1ETwlzvM.js
Normal file
@ -0,0 +1,9 @@
|
||||
let item = await fromUuid("Compendium.wfrp4e-core.items.aE3pyW20Orvdjzj0")
|
||||
let data = item.toObject();
|
||||
let target = await game.wfrp4e.tables.rollTable("fixations")
|
||||
if (target)
|
||||
{
|
||||
data.system.specification.value = target.result
|
||||
this.script.scriptNotification(target.result);
|
||||
}
|
||||
this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id})
|
Reference in New Issue
Block a user