foundryvtt-wh4-lang-fr-fr/scripts/dcwY8dCd3PNCEzk6.js

5 lines
232 B
JavaScript

let current = this.actor.status.fate.value
this.actor.update({"system.status.fate.value" : current + 1})
this.script.scriptMessage(`<b>${this.actor.prototypeToken.name}</b> fate points increased from ${current} to ${current + 1}`)