Add all systems effects scripts
This commit is contained in:
8
scripts/hmk8zV1LTElHUI8A.js
Normal file
8
scripts/hmk8zV1LTElHUI8A.js
Normal file
@ -0,0 +1,8 @@
|
||||
let msg = `<b>${this.actor.prototypeToken.name}</b> loses 1 Wound.<br>`
|
||||
if (this.actor.status.wounds.value <= 1)
|
||||
{
|
||||
msg += `<b>${this.actor.prototypeToken.name}</b> goes unconscious.<br>`
|
||||
await this.actor.addCondition("unconscious")
|
||||
}
|
||||
this.script.scriptMessage(msg)
|
||||
this.actor.modifyWounds(-1)
|
Reference in New Issue
Block a user