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,19 @@
let i_gain = (await new Roll("2d10").roll()).total
let fel_gain = 0
if (args.actor.characteristics.fel.value <= 0)
{
fel_gain += (await new Roll("2d10").roll()).total
}
let msg = `<b>${this.actor.prototypeToken.name}</b> gains ${i_gain} Intelligence`
if (fel_gain)
msg += ` and ${fel_gain} Fellowship`
let newInt = i_gain + args.actor.characteristics.int.modifier
let newFel = fel_gain + args.actor.characteristics.fel.modifier
args.actor.update({"system.characteristics.int.modifier" : newInt, "system.characteristics.fel.modifier" : newFel})
this.script.scriptMessage(msg)