You'll need a sheet worker, set up to change the DMG bonus when SIZ and STR change. You'll need to add a scripts section at the end of your character sheet like this, <!-- SHEET WORKERS -->
<script type="text/worker">
</script>
Any sheet workers you create go between those two tags. Here's one for the damage bonus, assuming your stats are named STR and SIZ, and damage bonus is stored in an attribute called DMG: on("change:str change:siz", function() { // stat names must use lower case here
getAttrs(["STR", "SIZ"], function(pvalue) { // from here on, use the actual case of the stat names.
var curStrength = parseInt(pvalue.STR);
var curSize = parseInt(pvalue.SIZ);
var STRplusSIZ = curStrength + curSize;
var DBonus;
//Determine Bonus
if (STRplusSIZ < 13) {
DBonus = "-1d6";
}
else if (STRplusSIZ < 18) {
DBonus = "-1d4";
}
else if (STRplusSIZ < 25) {
DBonus = "0";
}
else if (STRplusSIZ < 32) {
DBonus = "1d4";
}
else {
var damageFactor = Math.ceil((STRplusSIZ-24)/16);
DBonus = damageFactor + "d6";
}
setAttrs({
DMG: DBonus // change the DMG attribute name here to whatever your damage bonus attribute is called
});
});
});
There are several already-existing BRP/RQ compatible character sheets in the github repository . It's good practice to ransack their code for other things you might need.