David said: Marius said: Thanks for the input! I tried making a repating field for each stat, with a list of skills as G G suggests. I was able to make a selectable list, but couldn’t figure out how to get values into the attributes. (As I mentioned I don’t really know what I’m doing here...) Nothing against making the players type a bit, but afraid that might make it more dufficult to refference those attributes later. Will look at the Mongoose sheets. No idea why I didn’t do that earlier. The controlling attribute should be above the fieldset. <fieldset name="repeating_strSkills> <div> <select style="display:inline-block;margin-bottom:0px;width:xxpx" name="attr_skillName"> <option> value="Archery">Archery</option> <option> value="Archaic Artillery">Archaic Artillery</option> <option value="Armed Martial Arts">Armed Martial Arts</option> <option value="Autogun">Autogun</option> <option value="Early Firearms">Early Firearms</option> <option value="Energy Weapon">Energy Weapon</option> <option value="Grenade Launcher">Grenade Launcher</option> <option value="Heavy Artillery">Heavy Artillery</option> <option value="Heavy Gun">Heavy Gun</option> <option value="Mason">Mason</option> <option value="Mechanic">Mechanic</option> <option value="Slug Weapon">Slug Weapon</option> <option value="Thrown Weapon">Thrown Weapon</option> <option value="Unarmed Martial Arts">Unarmed Martial Arts</option> </select> <input type="number" value="0" name="attr_skillValue" /> <button type="roll" value="&{template:skillRoll} {{name=@{Name}}} {{skillvalue=@{skillValue}}} {{os=[[((@{skillValue}+@{Strength})*?{Difficulty?|Average,[[2]]|Easy,[[4]]|Difficult,[[1]]|Formidable,[[0.5]]|Impossible,[[0.25]]})-10]]}} {{cf=[[((@{skillValue}+@{Strength})*?{Difficulty?| Average,[[2]]|Easy, [[4]] |Difficult,[[1]]|Formidable,[[0.5]]|Impossible,[[0.25]] })+10]]}} {{success=[[(@{skillValue}+@{Strength})*?{Difficulty?| Average,[[2]]|Easy, [[4]] |Difficult,[[1]]|Formidable,[[0.5]]|Impossible,[[0.25]] }]]}} {{roll=[[1d20]]}} {{skillname=@{SkillName}}}"></button> </div> </fieldset>
.sheet-skill_value{ border: none; box-shadow: none; border-bottom: 1px solid black; border-radius: 0; display:inline-block; }
This is quite similar to something I tried earlier (though your code is better). I tested it (and cleaned up a few small mistakes), but I still can't get it to work properly. It looks ok on the sheet - but not actuall roll20 attributes are generated.