I do my best to answer my own questions, but I keep trying to do things I've never done before. Unfortunately this is no exception. This is the worker. It isn't actually creating any logs. I'm not sure what's going on with that. // load melee attacks
on('clicked:repeating_meleeAttacks:load_melee_attack', () => {
getAttrs(['repeating_meleeAttacks_melee_attack_action_points'], values => {
const pnd_act_pnt_chng = int(values.pending_action_point_change) + int(values.repeating_meleeAttacks_melee_attack_action_points);
console.log(
'load melee attacks' + '\n',
'pending_action_point_change: ' + pnd_act_pnt_chng
);
setAttrs({pending_action_point_change: pnd_act_pnt_chng});
});
});
This is the repeating section, with everything removed except for what the worker uses. <fieldset class="repeating_meleeAttacks">
<div class="expandable-section paleRedGradient">
<input class="expand-control" type="hidden" name="attr_melee_checkbox_expand" value="0"/>
<div class="meleeAttacksTitleGrid">
<div class="mleapc blueBackground section">
<div class="fieldLabelCenter white blueBackground section">AP</div>
<input class="field right manual24" name="attr_melee_attack_action_points" type="number" min='2'>
</div>
<div class="mlelde blueBackground blueBorderTop1 section">
<button class="buttonStyleTop load" name="act_load_melee_attack" type="action" style="float:right;">Load</button>
</div>
</div>
</div>
</fieldset>
And this is the value to be changed. <div class="pendap blueBackground section">
<input class="field manual19" name="attr_pending_action_point_change" type="number" value='0'>
</div>