I've been editing the Astonishing Swordsmen and Sorcerers of Hyperborea character sheet to automate as much of it as possible to make character creation as fast as possible. The issue I'm running into is that one new sheet worker (a gender randomizer), upon being added into the rest of the scripts, seemingly breaks the rest of the sheetworkers. Here is the troublesome sheet worker: on("clicked:genderroll", function() { getAttrs(['gender'], function(values) { var gender = parseInt(values.gender)||0; var genderroll = Math.floor(Math.random() * 10) + 1; if (genderroll <= 5 ) { gendervalue= 0; } else if (genderroll >= 6) { gendervalue= 1; } setAttrs({ "gender": gendervalue }); )}; )}; Here is it's code up top: <div class="sheet-ligne"> <span class="sheet-lib1 sheet-wid70">Gender</span> <select name="attr_gender" style="width: 140px;"> <option value="0">Man</option> <option value="1">Woman</option> </select> <button class="sheet-actiond100" type="action" name="act_genderroll"></button> </div> I have other sheetworkers that function similarly (random select from a drop down menu) that are working just fine so I'm not sure what it could be besides a syntax error that I keep missing.