I'm trying to make my sheetworker code more compact, since a lot of it are just the same three sheetworker slightly to the left. I used the Universal Sheetworkers page, as well as this code snippet as guidance, but in the end my code no longer worked and even after trying a few different things, I couldn't get it to work and now I'm at a loss. This is how the sheet workers looked like in the beginning, when everything still worked, and I had each of these three times a lot: const zehnerValues = ["1","2","3","4","5","6","7","8","9","10"]; const fuenferValues = ["1","2","3","4","5"]; on(`clicked:aufmerksamkeit-reset`, function() { setAttrs({ "aufmerksamkeit": 0 }); }); zehnerValues.forEach(function(value) { on(`clicked:koerperkraft-${value}`, function() { setAttrs({ "koerperkraft": value }); }); }); fuenferValues.forEach(function(value) { on(`clicked:aufmerksamkeit-${value}`, function() { setAttrs({ "aufmerksamkeit": value }); }); }); And this is how it looked like after I tried to do it as three universal sheet workers: const zehnerValues = ["1","2","3","4","5","6","7","8","9","10"]; const fuenferValues = ["1","2","3","4","5"]; const fertigkeitenListe = ["aufmerksamkeit", "ausweichen", "handgemenge", "nahkampf", "fernkampf", "sportlichkeit", "heimlichkeit", "ausdruck", "ausfluechte", "verhandeln", "einschuechtern", "empathie", "etikette", "fuehrungsqualitaeten", "wissen", "szenekenntnis", "nachforschungen", "handwerk", "tierkunde"]; const attributsListe = ["koerperkraft", "geschick", "widerstand", "charisma", "manipulation", "ausstrahlung", "wahrnehmung", "intelligenz", "geistesschaerfe"]; fertigkeitenListe.forEach(function(fert) { on(`clicked:reset-${fert}`, function() { setAttrs({ fert: 0 }); }); fuenferValues.forEach(function(fert) { on(`clicked:` + [fert + value].join(`-`), function() { setAttrs({ fert: value }); }); }); }); attributsListe.forEach(function(attri) { zehnerValues.forEach(function(value) { on(`clicked:` + [attri + value].join(`-`), function() { setAttrs({ attri: value }); }); }); }); I put the entire test code + css in a git repository: <a href="https://github.com/AmyLaPazza/dreamgate_charsheet" rel="nofollow">https://github.com/AmyLaPazza/dreamgate_charsheet</a>