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

7 lines
492 B
JavaScript
Raw Normal View History

if (args.test.item?.type == "skill" && args.test.item.name.includes(game.i18n.localize("NAME.Stealth")))
{
args.test.result.description = "Astounding Failure";
args.test.result.outcome = "failure";
ChatMessage.create({content : "<em>SQUEAK</em>", speaker : ChatMessage.getSpeaker({token: this.actor.getActiveTokens()[0]?.document, actor: this.actor})}, {chatBubble : true})
AudioHelper.play({ src: `${game.settings.get("wfrp4e", "soundPath")}squeek.wav` }, true);
}