Add all systems effects scripts
This commit is contained in:
13
scripts/b5prg1FLjCAvBjLy.js
Normal file
13
scripts/b5prg1FLjCAvBjLy.js
Normal file
@ -0,0 +1,13 @@
|
||||
let item = await fromUuid("Compendium.wfrp4e-core.items.zyocWSzEZEC826NS")
|
||||
let data = item.toObject();
|
||||
data.system.location.key = this.item.system.location.key
|
||||
this.actor.createEmbeddedDocuments("Item", [data])
|
||||
|
||||
|
||||
let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields: {difficulty: "hard"}, skipTargets: true, appendTitle : ` - ${this.effect.name}`})
|
||||
await test.roll();
|
||||
if (test.failed)
|
||||
{
|
||||
await this.actor.addCondition("prone")
|
||||
await this.actor.addCondition("stunned")
|
||||
}
|
Reference in New Issue
Block a user