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

8 lines
387 B
JavaScript
Raw Permalink Normal View History

if (args.test.characteristicKey == "wp")
{
if (args.test.failed)
{
this.actor.createEmbeddedDocuments("ActiveEffect", [game.wfrp4e.config.symptomEffects["malaise"]])
this.script.scriptMessage(`Willpower Test failed, <b>${this.actor.prototypeToken.name}</b> gains @Condition[Malaise] for [[1d10]] hours`, {whisper: ChatMessage.getWhisperRecipients("GM")})
}
}