I am attempting to alter a sheetworker from my Palladium Fantasy sheet for use in the Heroes Unlimited sheet I am working on. It uses the character's speed attribute, their number of attacks per melee, and calculates how far they can move for each melee action. The wrinkle is that the characters in the sheet I am working on can have more than 1 hand to hand skill, and must choose which one they are using. I already have a toggle to switch back and forth between the (currently) 2 hand to hand skill sections of the sheet for macro usage. I am attempting to get this sheetworker to also adjust to the attacks/actions per round as the hand to hand skill is changed. My current attempt looks like this: on("change:spd change:combatskill sheet:opened", function () { getAttrs(['spd','hth1_numberattacks', 'hth2_numberattacks', 'combatskill'], function (values) { const spd = parseInt(values['spd'])||0; const hth1_numberattacks = parseInt(values['hth1_numberattacks'])||0; const hth2_numberattacks = parseInt(values['hth2_numberattacks'])||0; let numberattacks = 1 if (combatskill = 1) numberattacks = hth1_numberattacks; else if (combatskill = 2) numberattacks = hth2_numberattacks; const modifier = Math.round((spd/numberattacks)*15); setAttrs({ run_attack: modifier }); }); }); spd = speed stat combatskill = radio button toggle which has a value of 1 or 2 corresponding to the hth number hth1_numberattacks = number of attacks/actions from Combat Skill 1 hth2_numberattacks = number of attacks/actions from Combat Skill 2 I'm sure there is some error in how I am structuring this because as it is, it will correctly display the correct calculation using hth1_numberattacks, but it doesn't change with the toggle. On my first attempt, I left out the "else" and it always calculated based on hth2_numberattacks. So I know it has all the attributes it needs and will calculate both ways, but I am doing something wrong in how I am asking it to change when the combatskill value changes. What am I doing wrong?