foundryvtt-wh4-lang-fr-fr/reference_scripts/CS6O7UUjQcUJoOUP.js

10 lines
570 B
JavaScript
Raw Permalink Normal View History

2024-06-06 21:09:27 +02:00
if (args.test.failed)
{
let SL = Number(args.test.result.SL)
if (SL <= -2 && SL > -4)
this.actor.addCondition("stunned")
else if (SL <= -4 && SL > -6)
this.script.scriptMessage(this.actor.prototypeToken.name + " must make a <b>Willpower</b> Test or fall @Condition[Prone].")
else if (SL <= -6)
this.actor.addCondition("unconscious")
}