As Finderski says, this sounds like a pretty simple task to handle in a sheet worker with 4 bits if information: the list of classes, the name of the attribute that contains the chosen class, the text you want displayed, and the name of the attribute where it will be displayed. The basic version of the sheet worker would look something like, assuming the attributes are named 'class' and 'class_bonus'. on ( "change:class" , function () {
getAttrs ([ "class" ], function (values) {
var class = values.class;
var bonus = '';
if (class === 'fighter') bonus = 'fighter bonus';
else if (class = 'rogue') bonus = 'rogue bonus';
else if (class = 'bard') bonus = 'bard bonus';
// and so on
setAttrs({
class_bonus: bonus
});
});
}); There are better ways to build this sheet worker, but this should be easy-ish to understand. It can get a little more complicated depending on what you want the bonus to do (like if it affects different stats), but it will be solvable if you can describe the specific details.