Add all systems effects scripts
This commit is contained in:
10
scripts/DVlZGbiuMIHEQOnM.js
Normal file
10
scripts/DVlZGbiuMIHEQOnM.js
Normal file
@ -0,0 +1,10 @@
|
||||
if (this.actor.getFlag("wfrp4e", "isAttached"))
|
||||
{
|
||||
let roll = await new Roll("1d10").roll()
|
||||
await roll.toMessage(this.script.getChatData());
|
||||
if (roll.total == 9 || roll.total == 10)
|
||||
{
|
||||
this.script.scriptMessage(`<strong>${this.actor.name}</strong> attached to <strong>${this.actor.getFlag("wfrp4e", "isAttached")}</strong> gorges and falls off.`)
|
||||
await this.actor.unsetFlag("wfrp4e", "isAttached")
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user