
How do I make sheet worker to replace an disabled field? Here is an auto calc field: <input type="number" class="sheet-stats-base" name="attr_willpower" value="0" readonly />
I thought the sheet worker code was suppose to look like this: on("change:physique change:intellect change:willpower_mod change:npc_willpower", function() {
getAttrs(["physique", "intellect", "willpower_mod", "npc_willpower"], function(values) {
setAttrs({
willpower: parseInt(values.physique) + parseInt(values.intellect) + parseInt(values.willpower_mod) + parseInt(values.npc_willpower)
});
});
});
But It appears not to be the case. Edit: Jake M. is very much right, but I posted the wrong code for my question. So, the above is now the code I currently have. Still doesn't work.