
I have recently started building character sheets here at Roll20, and think it is a lot of fun. But sometimes you encounter inconsistencies, and it is difficult to know if I am doing it wrong, if the system isn't allowing it or just not working properly. I have created a repeating section for my characters profession skills, it is mostly an exact copy of my working repeating spells section but with different attribute names. However, the action buttons and the sheet worker works for spells but not skills. So, the classic question : My action button in my repeating section doesnt work, any ideas? Here is my html, with some of the options removed for brevity: <fieldset class="repeating_pskills">
<span class="skills-row chartype-background-light">
<input class="skill-name chartype-background-light" class="input" type="text" name="attr_pskill_name" />
<span class="small-caps skill-name">
<input type="hidden" name="attr_pskill_base" value="0" min="0" title="@{pskills_$X_pskill_base}" readonly />
<select class="input character-skill-mod chartype-background-light" name="attr_pskill_attr" title="@{pskills_$X_pskill_attr}">
<option value="" selected disabled hidden data-i18n="base">Base</option>
<option value="str" data-i18n="strength-abbr">Str</option>
<option value="agi" data-i18n="agility-abbr">Agi</option>
<option value="wit" data-i18n="wits-abbr">Wit</option>
<option value="emp" data-i18n="empathy-abbr">Emp</option>
</select>
</span>
<input class="input-number character-skill-level" type="number" name="attr_pskill_level" value="0" min="0" title="@{pskills_$X_proffskill_level}" />
<select class="input character-skill-mod" name="attr_pskill_misc" title="@{pskills_$X_pskill_misc}">
<option value="0" selected>+0</option>
</select>
<select class="input character-skill-gear" name="attr_pskill_gear" title="@{pskills_$X_pskill_gear}">
<option value="0" selected>+0</option>
</select>
<button type="action" name="act_pskill-roll" data-i18n-title="update-dice-pool" title="Update the dice pool. Use the 'Roll' button to roll the dice.">
<span class="readonly character-skill-total" name="attr_pskill_total" value="0" title="@{pskills_$X_pskill_total}">0</span>
</button>
</span>
</fieldset> And sheetworker script: /* set prof skill dice pool */ on("clicked:repeating_pskills:pskill-roll", function () { clog("Change Detected: Profession Skill - button clicked"); clog("eventInfo.sourceAttribute"); getAttrs(["repeating_pskills_pskill_name", "repeating_pskills_pskill_base", "repeating_pskills_pskill_level", "repeating_pskills_pskill_misc", "repeating_pskills_pskill_gear"], function (values) { const pskill_name = values.repeating_pskills_pskill_name, pskill_base = int(values.repeating_pskills_pskill_base), pskill_level = int(values.repeating_pskills_pskill_level), pskill_misc = int(values.repeating_pskills_pskill_misc), pskill_gear = int(values.repeating_pskills_pskill_gear), pskill_skill = pskill_level + pskill_misc; setAttrs({ attribute: pskill_base, skill: pskill_skill, gear: pskill_gear, current_preset: getTranslationByKey(`skill`) + ` - ${pskill_name}`, include_with_roll: `{{skill-base=${pskill_base}}} {{skill-level=${pskill_level}}} {{skill-bonus-misc=${pskill_misc}}} {{skill-bonus-gear=${pskill_gear}}}`, }); }); }); This sheetworker script sets the pskill_total and pskill_base, and works (seen in sheet and clog) on("change:repeating_pskills:pskill_name change:repeating_pskills:pskill_attr change:repeating_pskills:pskill_level change:repeating_pskills:pskill_misc change:repeating_pskills:pskill_gear change:strength_total change:agility_total change:wits_total change:empathy_total", function () { clog("Change Detected: Profession Skill - recalculating Base & Skill totals"); getAttrs(["repeating_pskills_pskill_name", "repeating_pskills_pskill_attr", "repeating_pskills_pskill_level", "repeating_pskills_pskill_misc", "repeating_pskills_pskill_gear", "strength_total", "agility_total", "wits_total", "empathy_total"], function (values) { const name = values.repeating_pskills_pskill_name, attr = values.repeating_pskills_pskill_attr, strength = int(values.strength_total), agility = int(values.agility_total), wits = int(values.wits_total), empathy = int(values.empathy_total), pskill_skill = int(values.repeating_pskills_pskill_level), pskill_misc = int(values.repeating_pskills_pskill_misc), pskill_gear = int(values.repeating_pskills_pskill_gear); const base = attr === "str" ? strength : (attr === "agi" ? agility : (attr === "wit" ? wits : (attr === "emp" ? empathy : 0))), pskill_total = base + pskill_skill + pskill_misc + pskill_gear; setAttrs({ repeating_pskills_pskill_base: base, repeating_pskills_pskill_total: pskill_total, }); clog("pskill_name: " + name + ", pskill_base: " + base + ", pskill_total: " + pskill_total); }); }); It seems to me that the action button is not throwing any event, since there is nothing in the browser F12 console (not the clogs, not even an error) I have so far tried the following to no avail: Changed naming on attributes and repeating section to see any difference, especially made sure no uppercase nor underscores in the repeating section or action button attributes. I have another sheetworker script that successfully updates the attr_pskill_total in the html above, so referencing the attributes work (can share if needed) I have tried with "clicked:repeating_pskills:pskill-roll" and "clicked:repeating_pskills", made no difference Tried removing the span inside the button, and reverted to a roll-button class Compared with the working repeating_spells section and sheetworker, they look extremely similar but still this one doesn't work while spells does I have even tried removing everything but the clog rows, and still nothing Scratching my head, staring myself blind at the code, and not really finding more things to try nor more posts in the forum to read. Thanks, Rich