The only way I know to do what you're asking is with a sheetworker, and manipulating repeating sets with sheet workers is pretty tricky. Here's a quick and dirty approach. Assuming you have a repeating set defined like this: <h3>Qualities</h3>
<fieldset class="repeating_skills">
<input type="text" name="attr_skill" style="width: 70%; float: left;">
<select name="attr_skilldtype" style="width: 20%; float: left;">
<option value="d0" selected>-</option>
<option value="d4">d4</option>
<option value="d6">d6</option>
<option value="d8">d8</option>
<option value="d10">d10</option>
<option value="d12">d12</option>
</select>
<input type="checkbox" name="attr_skillcheck" value="1">
</fieldset>
And also outside of the set: <input type="text" name="attr_skill_chosen" > <input type="text" name="attr_skill_value" > The following sheetworker will update the skill_chosen and skill_value whenever you click the checkbox. It will also immediately uncheck the checkbox, because keeping track of which checkbox is checked is one of trickiest elements of repeating set coding, and this is a quick-and-dirty solution. <script type="text/worker">
on("change:repeating_skills:skillcheck", function(eventInfo) {
getAttrs(["repeating_skills_skill","repeating_skills_skilldtype","repeating_skills_skillcheck"],function(v) {
let check = parseInt(v.repeating_skills_skillcheck)||0;
if(check === 1) {
let skill = v.repeating_skills_skill;
let value = v.repeating_skills_skilldtype;
setAttrs({
"skill_chosen": skill,
"skill_value": value,
"repeating_skills_skillcheck":0
});
}
});
});
// all other sheet workers go here, before the /script.
</script>
Note: all sheet workers must be placed inside the same script tag. You can duplicate this sheetworker for your other repeating set, changing all "skills" and "skill" to the other sets name. Assuming that other set is named repeating_ability, you need a button to roll, which will look something like this: <button type="roll" value="**@{skill_chosen} + @{ability_chosen}** Check:[[ @{skill_value}+@{ability_value} ]]" ></button> or simply <button type="roll" value="/roll @{skill_value}+@{ability_value}" ></button>