Add all systems effects scripts

This commit is contained in:
2024-05-16 17:57:51 +02:00
parent b42df99b27
commit 0b286ac994
1282 changed files with 9990 additions and 384 deletions

View File

@ -0,0 +1,26 @@
this.script.scriptNotification(`Healed ${this.actor.characteristics.t.bonus * 2} Wounds`)
await this.actor.modifyWounds(this.actor.characteristics.t.bonus * 2)
let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - Side Effects`,fields : {difficulty : "difficult"}})
await test.roll();
if (test.failed)
{
let roll = await new Roll("1d10").roll();
await roll.toMessage(this.script.getChatData())
if (roll.total <= 3)
{
this.actor.addCondition("blinded", 3)
}
else if (roll.total <= 6)
{
this.actor.addCondition("broken");
}
else if (roll.total <= 9)
{
this.actor.addCondition("stunned");
}
else if (roll.total == 10)
{
this.actor.addConditon("unconscious")
}
}