Files
wfrp-4e-de/scripts/zA6TDttpwMSMl7D8.js
2025-05-15 23:03:43 +02:00

14 lines
788 B
JavaScript

// An imbiber must take a Consume Alcohol Test.
this.actor.setupSkill(game.i18n.localize("NAME.ConsumeAlcohol"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}).then(async test => {
await test.roll()
// If they succeed,
// as a result of whatever potential futures they glimpse,
// they can spend a Fortune Point within the next hour to reverse the dice of any failed Test.
if (test.succeeded) {
this.script.scriptMessage(`Als ein Resultat welcher möglichen Zukunft auch immer sie erspähen, kann <strong>${this.actor.prototypeToken.name}</strong> in der nächsten Stunde einen Glückspunkt ausgeben um die Würfel eines fehlgeschlagenen Tests umzukehren.`,
{
whisper: ChatMessage.getWhisperRecipients("GM"),
blind: true
})
}
})