Add all systems effects scripts
This commit is contained in:
12
scripts/9fK07tqqZyPg7dpx.js
Normal file
12
scripts/9fK07tqqZyPg7dpx.js
Normal file
@ -0,0 +1,12 @@
|
||||
let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty: "veasy"}})
|
||||
await test.roll();
|
||||
if (test.failed)
|
||||
{
|
||||
this.script.scriptNotification("Gained a <strong>Festering Wound</strong>")
|
||||
let item = await fromUuid("Compendium.wfrp4e-core.items.kKccDTGzWzSXCBOb")
|
||||
this.actor.createEmbeddedDocuments("Item", [item.toObject()])
|
||||
}
|
||||
else
|
||||
{
|
||||
this.script.scriptNotification("Avoided a <strong>Festering Wound</strong>")
|
||||
}
|
Reference in New Issue
Block a user