Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

Can't figure this out: [EASY]

This should be easy and straightforward and I can't figure out if it is even possible within the Roll20 environment.  I want to make a simple repeating section. In this repeating section I want to list the skill name, the dice you roll (d4-12), and then have a radio or select option available. When your full list of skills is complete I want you to be able to check a box and click a roll button and it rolls the selected dice.  -Repeating Section Radio Selection -Radio Selection Attached to a Roll Button " <h3>Qualities</h3> <fieldset> <form> <input type="text" name="attr_skill" style="width: 70%; float: left;"> <select name="attr_skilldtype" style="width: 20%; float: left;"> <option value="-">-</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="radio" value="@{attr_skilldtype}" name="attr_skilldtype" style="margin: 0 auto; float: left; margin-top: 10px; margin-left: 5px;"> </form> </fieldset> "
1518481227

Edited 1518481522
vÍnce
Pro
Sheet Author
I don't think you can "mix" a radio input with a select input like that.  Normally your radio inputs would have a different value for each input.  You could create all radio inputs for your dice... I noticed your radio input's name is the same as it's value.  I don't think that would work at all.  Do you need a radio input?  If not, how about just using a select and a button.  Also, always name your repeating section on roll20 ie class="repeating_foo"  note: Don't use dashes and I recommend all lowercase.  example <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> <button type="roll" value="**@{skill}** Check:[[ @{skilldtype} ]]" style="float: left;"></button> </fieldset>
Thanks Vince! I actually was able to work around that issue. I am now just trying to get the rolls to work on my sheet. This is the first sheet that I have ever created and there isn't a super comprehensive amount of information out there. Especially info that outlines exactly how your sheet will act in Roll20.
1518484170
vÍnce
Pro
Sheet Author
teekay1127 said: Thanks Vince! I actually was able to work around that issue. I am now just trying to get the rolls to work on my sheet. This is the first sheet that I have ever created and there isn't a super comprehensive amount of information out there. Especially info that outlines exactly how your sheet will act in Roll20. You're welcome.  What issues are you having with rolls?  Lot's of helpful people here. ;-)
I have a <fieldset> where you can add the name and dice of a skill. SKILL NAME ((DICE)) [  ]  You can name the Skill what ever you want. The Dice field has a drop down selection of d4, d6, d8, d10, d12. The check box at the end is default unchecked.  ABILITY NAME ((DICE)) [  ] Abilities are setup the same way.  MOD DICE There are 3 different states your character can be in (one at a time). Each state is a Radio input. I want a roll button that takes the: CHECKED Skill CHECKED Ability CHECKED Mod and roll the three dice.  Is it possible to do a "/roll d@{value} + ?{other-mods}"
1518493285

Edited 1518493423
GiGs
Pro
Sheet Author
API Scripter
I'll describe the only way I can think of doing this, maybe others will have a simpler suggestions. First, create some extra fileds outside the fieldset . Three visible inputs: active_skill_name, active_ability_name, active_mod_name (this last one might not be needed) Three hidden inputs: active_skill_value, active_ability_value, active_mod_value  and one more control@ a roll button, which contains a roll made up of the 3 value boxes. (value='/roll @{active_skill_value} + @{active_ability_value} + @{active_mod_value}') Then in your repeating set in the skills group, have a checkbox labelled "set active", and another in the ability group. Now set up a sheet worker, which whenever a checkbox is ticked, does the following: * identifies the current checkbox * loops through all check boxes in that set and unchecks the others (this is the tricky part - if you can use radio buttons, you can obviously skip this part but i dont know if you can) * adds the name and dice from the current selected field to the above inputs outside the fieldset. So the way this works is, you click a checkbox in skills, and the chosen skill name and value is added to the global box above. likewise for abilities. (Mods can be set beside them). You have the fields at the top which show players what their currently selected items are, and a button to roll them.