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 .
×
Create a free account

[Help] Roll functions not working

so I'm making a sheet that uses a multi dice system (stat level= number of dice you roll) and i'm having some problems with it. ordinary rolls work fine, but rolls that require you to roll a number of dice equal to two stats doesn't seem to work, anyone know why? Instead of displaying the rolls it displays the formula.
1439485062
Finderski
Plus
Sheet Author
Compendium Curator
Can you post your code?
When I do such, I use (I think; on a phone and can't test): <input type="number" name="attr_trait_total-a" value(@{trait-1}+@{trait-2})" disabled="true" /> <button type="roll" name="attr_trait_roll-a" value="[[ [[@{trait-total-a}]]d10 ]]"></button>
Coal Powered Puppet said: When I do such, I use (I think; on a phone and can't test): <input type="number" name="attr_trait_total-a" value(@{trait-1}+@{trait-2})" disabled="true" /> <button type="roll" name="attr_trait_roll-a" value="[[ [[@{trait-total-a}]]d10 ]]"></button> huh... didn't know I needed to add the [[]] things, I'll try it.
1439494878

Edited 1439504228
Grim G.
Sheet Author
Coal Powered Puppet said: When I do such, I use (I think; on a phone and can't test): <input type="number" name="attr_trait_total-a" value(@{trait-1}+@{trait-2})" disabled="true" /> <button type="roll" name="attr_trait_roll-a" value="[[ [[@{trait-total-a}]]d10 ]]"></button> there seams to be something wrong with my code so I'm going to post it here so you can see for yourself what I'm doing wrong. The button I'm using it of the 45th line. <div>     <div class='sheet-3colrow'>         <!--column1-->         <div class='sheet-col'>             <label>Unit Name</lable><input type="text" name="attr_unit_name"/>             <!--INTELLIGENCE-->                 <table>                 <tr>                     <td><input type="number" name="attr_realitycom"/></td>                     <td>RealityCom</td>                     <td><button type='roll' value="/roll @{realitycom}d10r10"></button></td>                 </tr>                 <tr>                     <td><input type="number" name="attr_humancom"/></td>                     <td>HumanCom</td>                     <td><button type='roll' value="/roll @{humancom}d10r10"></button></td>                 </tr>                 <tr>                     <td><input type="number" name="attr_digicon"/></td>                     <td>DigiCon</td>                     <td><button type='roll' value="/roll @{digicon}d10r10"></button></td>                 </tr>                 <tr>                     <td><input type="number" name="attr_mechanicon"/></td>                     <td>MechaniCon</td>                     <td><button type='roll' value="/roll @{mechanicon}d10r10"></button></td>                 </tr>             </table>             <h2>Physical Interaction</h2>             <!-- Interaction Pool-->             <div>                 <table>                     <thead>                         <tr>                             <th>Dex+Ref</th>                             <th>Mods</th>                             <th>Interaction Pool</th>                         </tr>                     </thead>                     <tbody>                         <tr>                             <td><input type="number" name="attr_dex+ref" value="(@{dexterity} + @{reflexes})" disabled="true"/></td>                             <td><input type="number" name="attr_interaction_pool_mod" value="0"/></td>                             <td><input type="number" name="attr_interaction_pool_total" value="@{dex+ref} + @{interaction_pool_mod}" disabled="true"/></td>                             <td><button type="roll" name="attr_interaction_roll" value="/roll[[ [[ @{interaction_pool_total} ]]d10r10 ]]"></button></td>                         </tr>                     </tbody>                 </table>             </div>             <!--TN to be struck-->             <div>                 <table>                     <thead>                         <tr>                             <th>Mobil+Ref</th>                             <th>Mods</th>                             <th>TN to be struck</th>                         </tr>                     </thead>                     <tbody>                         <tr>                             <td><input type="number" name="attr_mobil+ref" value="@{mobility} + @{reflexes}" disabled="true"/></td>                             <td><input type="number" name="attr_tn_to_be_struck_mod" value="0"/></td>                             <td><input type="number" name="attr_interaction_pool_total" value="@{mobil+ref} + @{tn_to_be_struck_mod}" disabled="true"/></td>                         </tr>                     </tbody>                 </table>             </div>              <!--Damage from Strike-->             <div>                 <table>                     <thead>                         <tr>                             <th>Str÷2 R down</th>                             <th>Mods</th>                             <th>Damage from Strike</th>                         </tr>                     </thead>                     <tbody>                         <tr>                             <td><input type="number" name="attr_str÷2" value="@{strength} / 2" disabled="true"/></td>                             <td><input type="number" name="attr_strike_damage_mod" value="0"/></td>                             <td><input type="number" name="attr_strike_damage_total" value="@{str÷2} + @{strike_damage_mod}" disabled="true"/></td>                             <td><button type="roll" name="attr_basic_strike_roll" value="@{strike_damage_total}d10r10"></button></td>                         </tr>                     </tbody>                 </table>             </div>             <!--FEATURES-->             <h2>FEATURES</h2>             <div>                 <table>                     <thead>                         <tr>                             <th>Name</th>                             <th>Rating</th>                         </tr>                     </thead>                     <tbody>                         <tr>                             <td><input type="text" name="attr_feature_name1"/></td>                             <td><input type="number" name="attr_frature_rating1"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_feature_name2"/></td>                             <td><input type="number" name="attr_frature_rating2"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_feature_name3"/></td>                             <td><input type="number" name="attr_frature_rating3"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_feature_name4"/></td>                             <td><input type="number" name="attr_frature_rating4"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_feature_name5"/></td>                             <td><input type="number" name="attr_frature_rating5"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_feature_name6"/></td>                             <td><input type="number" name="attr_frature_rating6"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_feature_name7"/></td>                             <td><input type="number" name="attr_frature_rating7"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_feature_name8"/></td>                             <td><input type="number" name="attr_frature_rating8"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_feature_name9"/></td>                             <td><input type="number" name="attr_frature_rating9"/></td>                             </tr>                         <tr>                             <td><input type="text" name="attr_feature_name10"/></td>                             <td><input type="number" name="attr_frature_rating10"/></td>                         </tr>                     </tbody>                 </table>             </div>         </div>         <!--column2-->         <div class='sheet-col'>             <label>Player</label><input type="text" name="attr_player"/>             <!--CHASSIS-->             <table>                 <tr>                     <td><input type="number" name="attr_dexterity"/></td>                     <td>Dexterity</td>                     <td><button type='roll' value='/roll @{dexterity}d10'></td>                 </tr>                 <tr>                     <td><input type="number" name="attr_mobility"/></td>                     <td>Mobility</td>                     <td><button type='roll' value='/roll @{mobility}d10'></td>                 </tr>                 <tr>                     <td><input type="number" name="attr_perception"/></td>                     <td>Perception</td>                     <td><button type='roll' value='/roll @{perception}d10'></td>                 </tr>                 <tr>                     <td><input type="number" name="attr_reflexes"/></td>                     <td>Reflexes</td>                     <td><button type='roll' value='/roll @{reflexes}d10'></td>                 </tr>                 <tr>                     <td><input type="number" name="attr_strength"/></td>                     <td>Strength</td>                     <td><button type='roll' value='/roll @{strength}d10'></td>                 </tr>             </table>             <h2>Movement</h2>             <!--Initiative-->             <div>                 <table>                     <thead>                         <tr>                             <th>1d10+Ref</th>                             <th>Mods</th>                             <th>Initiative Total</th>                         </tr>                     </thead>                     <tbody>                         <tr>                             <td><input type="number" name="attr_1d10+ref" value="@{reflexes}" disabled="true"/></td>                             <td><input type="number" name="attr_initiative_mod" value="0"/></td>                             <td><input type="number" name="attr_Initiative_total" value="@{reflexes} + @{initiative_mod}" disabled="true"/></td>                         </tr>                     </tbody>                 </table>             </div>             <!--Speed-->             <div>                 <table>                     <thead>                         <tr>                             <th>Mobil+Ref</th>                             <th>Mods</th>                             <th>Speed K/H M/R</th>                         </tr>                     </thead>                     <tbody>                         <tr>                             <td><input type="number" name="attr_ref+mobil" value="@{reflexes} + @{mobility}" disabled="true"/></td>                             <td><input type="number" name="attr_speed_mod" value="0"/></td>                             <td><input type="number" name="attr_initiative_total" value="@{ref+mobil} + @{speed_mod}" disabled="true"/></td>                         </tr>                     </tbody>                 </table>             </div>             <!--DEFECTS-->             <h2>DEFECTS</h2>             <div>                 <table>                     <thead>                         <tr>                             <th>Name</th>                             <th>Rating</th>                         </tr>                     </thead>                     <tbody>                         <tr>                             <td><input type="text" name="attr_defect_name1"/></td>                             <td><input type="number" name="attr_defect_rating1"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_defect_name2"/></td>                             <td><input type="number" name="attr_defect_rating2"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_defect_name3"/></td>                             <td><input type="number" name="attr_defect_rating3"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_defect_name4"/></td>                             <td><input type="number" name="attr_defect_rating4"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_defect_name5"/></td>                             <td><input type="number" name="attr_defect_rating5"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_defect_name6"/></td>                             <td><input type="number" name="attr_defect_rating6"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_defect_name7"/></td>                             <td><input type="number" name="attr_defect_rating7"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_defect_name8"/></td>                             <td><input type="number" name="attr_defect_rating8"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_defect_name9"/></td>                             <td><input type="number" name="attr_defect_rating9"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_defect_name10"/></td>                             <td><input type="number" name="attr_defect_rating10"/></td>                         </tr>                     </tbody>                 </table>             </div>         </div>         <!--column3-->         <div class='sheet-col'>             <label>Original Purpose</label><textarea name="attr_original_purpose"></textarea>             <!--CRUX-->             <table>                 <tr>                     <td><input type="number" name="attr_durability"/></td>                     <td>Durability</td>                     <td><button type='roll' value='/roll @{durability}d10'></td>                 </tr>                 <tr>                     <td><input type="number" name="attr_buffer"/></td>                     <td>Buffer</td>                     <td><button type='roll' value='/roll @{buffer}d10'></td>                 </tr>                 <tr>                     <td><input type="number" name="attr_size"/></td>                     <td>Size</td>                     <td><button type='roll' value='/roll @{size}d10'></td>                 </tr>                 <tr>                     <td><input type="number" name="attr_power"/></td>                     <td>Power</td>                     <td><button type='roll' value='/roll @{power}d10'></td>                 </tr>             </table>             <h2>Thresholds</h2>             <!--OS-->             <div>                 <table>                     <thead>                         <tr>                             <th>DigiCon+Buffer</th>                             <th>Mods</th>                             <th>OS Threshold</th>                         </tr>                     </thead>                     <tbody>                         <td><input type="number" name="attr_digicon+buffer" value="@{buffer} + @{digicon}" disabled="true"/></td>                         <td><input type="number" name="attr_os_mod" value="0"/></td>                         <td><input type="number" name="attr_os_total" value="@{digicon+buffer} + @{os_mod}" disabled="true"/></td>                     </tbody>                 </table>             </div>             <!--Damage-->             <div>                 <table>                     <thead>                         <tr>                             <th>Durability + Size</th>                             <th>Mods</th>                             <th>Damage Threshold</th>                         </tr>                     </thead>                     <tbody>                         <tr>                             <td><input type="number" name="attr_durability+size" value="@{durability} + @{size}" disabled="true"/></td>                             <td><input type="number" name="attr_damage_mod" value="0"/></td>                             <td><input type="number" name="attr_damage_total" value="@{durability+size} + @{damage_mod}" disabled="true"/></td>                         </tr>                     </tbody>                 </table>             </div>             <h2>Inventory</h2>             <label>Space</label><input type="text" name="attr_space" value="lengthX widthY heightZ"/>         </div>     </div> </div>
1439495977
DK Heinrich
Marketplace Creator
Sheet Author
if you click the little paragraph option button it gives option for 'code' - if you cut and paste your code in that box it creates it is easier to read (I just learned this last week)
DK Heinrich said: if you click the little paragraph option button it gives option for 'code' - if you cut and paste your code in that box it creates it is easier to read (I just learned this last week) thanks for the info
i hope my edits help
The problem is the "/roll[[foo]]".  You need to do either "/roll foo" or "[[foo]]".
manveti said: The problem is the "/roll[[foo]]".  You need to do either "/roll foo" or "[[foo]]". what's foo?
1439513189
Andrew R.
Pro
Sheet Author
The "foo" is anything after the "/roll" or between the "[[ ]]".  foo / A sample name for absolutely anything, especially programs and files (especially scratch files). First on the standard list of metasyntactic variables used in syntax examples. See also bar, baz, qux, quux, corge, grault, garply, waldo, fred, plugh, xyzzy, thud. The etymology of " foo " is obscure.
td><button type="roll" name="attr_interaction_roll" value="/roll[[ [[ @{interaction_pool_total} ]]d10r10 ]]"></button></td> Needs to be: td><button type="roll" name="attr_interaction_roll" value="[[ [[ @{interaction_pool_total} ]]d10r10 ]]"></button></td> /roll and [[ ]] mean the same thing to Roll20. The double brackets just mean its an inline roll where it will just show the numbers rolled.
1439540192
Finderski
Plus
Sheet Author
Compendium Curator
Actually, /r and inline rolls can be used together.  Just to verify I did it in my test campaign.  However, /roll[[ doesn't work, there needs to be a space between the /roll and the [[.  The other thing I'm not certain of, is a field name with a + in it (for example: attr_dex+ref).  Just to be safe, I'd probably change that to something like: attr_DexRef or attr_DexNRef.
so it's working now but the goal is to see the individual dice rolls, not the total. Is there a way to make this work without making it inline?
1439649129
Finderski
Plus
Sheet Author
Compendium Curator
Have you tried: /roll [[ @{interaction_pool_total} ]]d10r10
G V. said: Have you tried: /roll [[ @{interaction_pool_total} ]]d10r10 now i did, it took a few attempts but i have it. thanks.
1439658621

Edited 1439670148
Grim G.
Sheet Author
Ok so I'm having another odd problem. One of the rolls includes a variable that I didn't include, does anyone know why? Actually it's not just one roll. Any compound roll that uses reflexes ends up uses mobility despite not having some other stat instead. Ok, so I tried to fix the problem but only made it worse, the roll that was bugging me in the first place is starting to do just that again.
1439742600

Edited 1439824467
Grim G.
Sheet Author
I still have no idea what's wrong with this, i've looked over the rolls countless times but I can't figure it out. <div>     <div class='sheet-3colrow'>         <!--column1-->         <div class='sheet-col'>             <label>Unit Name</lable><input type="text" name="attr_unit_name"/>             <!--INTELLIGENCE-->                 <table>                 <tr>                     <td><input type="number" name="attr_realitycom"/></td>                     <td>RealityCom</td>                     <td><button type='roll' value="/roll @{realitycom}d10r10"></button></td>                 </tr>                 <tr>                     <td><input type="number" name="attr_humancom"/></td>                     <td>HumanCom</td>                     <td><button type='roll' value="/roll @{humancom}d10r10"></button></td>                 </tr>                 <tr>                     <td><input type="number" name="attr_digicon"/></td>                     <td>DigiCon</td>                     <td><button type='roll' value="/roll @{digicon}d10r10"></button></td>                 </tr>                 <tr>                     <td><input type="number" name="attr_mechanicon"/></td>                     <td>MechaniCon</td>                     <td><button type='roll' value="/roll @{mechanicon}d10r10"></button></td>                 </tr>             </table>             <h2>Physical Interaction</h2>             <!-- Interaction Pool-->             <div>                 <table>                     <thead>                         <tr>                             <th>Dex+Ref</th>                             <th>Mods</th>                             <th>Interaction Pool</th>                         </tr>                     </thead>                     <tbody>                         <tr>                             <td><input type="number" name="attr_dex+ref" value="(@{dexterity} + @{reflexes})" disabled="true"/></td>                             <td><input type="number" name="attr_interaction_pool_mod" value="0"/></td>                             <td><input type="number" name="attr_interaction_pool_total" value="@{dex+ref} + @{interaction_pool_mod}" disabled="true"/></td>                             <td><button type="roll" name="attr_interaction_roll" value="/roll [[ [[ @{interaction_pool_total} ]] d10r10]]"></button></td>                         </tr>                     </tbody>                 </table>             </div>             <!--TN to be struck-->             <div>                 <table>                     <thead>                         <tr>                             <th>Mobil+Ref</th>                             <th>Mods</th>                             <th>TN to be struck</th>                         </tr>                     </thead>                     <tbody>                         <tr>                             <td><input type="number" name="attr_mobil+ref" value="@{mobility} + @{reflexes}" disabled="true"/></td>                             <td><input type="number" name="attr_tn_to_be_struck_mod" value="0"/></td>                             <td><input type="number" name="attr_tn_to_be_struck_total" value="@{mobil+ref} + @{tn_to_be_struck_mod}" disabled="true"/></td>                         </tr>                     </tbody>                 </table>             </div>              <!--Damage from Strike-->             <div>                 <table>                     <thead>                         <tr>                             <th>Str÷2 R down</th>                             <th>Mods</th>                             <th>Damage from Strike</th>                         </tr>                     </thead>                     <tbody>                         <tr>                             <td><input type="number" name="attr_str÷2" value="@{strength} / 2" disabled="true"/></td>                             <td><input type="number" name="attr_strike_damage_mod" value="0"/></td>                             <td><input type="number" name="attr_strike_damage_total" value="@{str÷2} + @{strike_damage_mod}" disabled="true"/></td>                         </tr>                     </tbody>                 </table>             </div>             <!--FEATURES-->             <h2>FEATURES</h2>             <div>                 <table>                     <thead>                         <tr>                             <th>Name</th>                             <th>Rating</th>                         </tr>                     </thead>                     <tbody>                         <tr>                             <td><input type="text" name="attr_feature_name1"/></td>                             <td><input type="number" name="attr_feature_rating1"/></td>                             <td><input type="number" name="attr_feature_cost2"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_feature_name2"/></td>                             <td><input type="number" name="attr_feature_rating2"/></td>                             <td><input type="number" name="attr_feature_cost2"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_feature_name3"/></td>                             <td><input type="number" name="attr_feature_rating3"/></td>                             <td><input type="number" name="attr_feature_cost3"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_feature_name4"/></td>                             <td><input type="number" name="attr_feature_rating4"/></td>                             <td><input type="number" name="attr_feature_cost4"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_feature_name5"/></td>                             <td><input type="number" name="attr_feature_rating5"/></td>                             <td><input type="number" name="attr_feature_cost5"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_feature_name6"/></td>                             <td><input type="number" name="attr_feature_rating6"/></td>                             <td><input type="number" name="attr_feature_cost6"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_feature_name7"/></td>                             <td><input type="number" name="attr_feature_rating7"/></td>                             <td><input type="number" name="attr_feature_cost7"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_feature_name8"/></td>                             <td><input type="number" name="attr_feature_rating8"/></td>                             <td><input type="number" name="attr_feature_cost8"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_feature_name9"/></td>                             <td><input type="number" name="attr_feature_rating9"/></td>                             <td><input type="number" name="attr_feature_cost9"/></td>                        <tr>                             <td><input type="text" name="attr_feature_name10"/></td>                             <td><input type="number" name="attr_feature_rating10"/></td>                             <td><input type="number" name="attr_feature_cost10"/></td>                         </tr>                     </tbody>                 </table>             </div>         </div>         <!--column2-->         <div class='sheet-col'>             <label>Player</label><input type="text" name="attr_player"/>             <!--CHASSIS-->             <table>                 <tr>                     <td><input type="number" name="attr_dexterity"/></td>                     <td>Dexterity</td>                     <td><button type='roll' value="/roll @{dexterity}d10"></button></td>                 </tr>                 <tr>                     <td><input type="number" name="attr_mobility"/></td>                     <td>Mobility</td>                     <td><button type='roll' value="/roll @{mobility}d10"></button></td>                 </tr>                 <tr>                     <td><input type="number" name="attr_perception"/></td>                     <td>Perception</td>                     <td><button type='roll' value="/roll @{perception}d10"></button></td>                 </tr>                 <tr>                     <td><input type="number" name="attr_reflexes"/></td>                     <td>Reflexes</td>                     <td><button type='roll' value="/roll @{reflexes}d10"></button></td>                 </tr>                 <tr>                     <td><input type="number" name="attr_strength"/></td>                     <td>Strength</td>                     <td><button type='roll' value="/roll @{strength}d10"></button></td>                 </tr>             </table>             <h2>Movement</h2>             <!--Initiative-->             <div>                 <table>                     <thead>                         <tr>                             <th>1d10+Ref</th>                             <th>Mods</th>                             <th>Initiative Total</th>                         </tr>                     </thead>                     <tbody>                         <tr>                             <td><input type="number" name="attr_1d10+ref" value="@{reflexes}" disabled="true"/></td>                             <td><input type="number" name="attr_initiative_mod" value="0"/></td>                             <td><input type="number" name="attr_initiative_total" value="@{reflexes} + @{initiative_mod}" disabled="true"/></td>                             <td><button type="roll" name="attr_initiative_roll" value="/roll @{initiative_total} + 1d10"></button></td>                         </tr>                     </tbody>                 </table>             </div>             <!--Speed-->             <div>                 <table>                     <thead>                         <tr>                             <th>Mobil+Ref</th>                             <th>Mods</th>                             <th>Speed K/H M/R</th>                         </tr>                     </thead>                     <tbody>                         <tr>                             <td><input type="number" name="attr_ref+mobil" value="@{reflexes} + @{mobility}" disabled="true"/></td>                             <td><input type="number" name="attr_speed_mod" value="0"/></td>                             <td><input type="number" name="attr_speed_total" value="@{ref+mobil} + @{speed_mod}" disabled="true"/></td>                         </tr>                     </tbody>                 </table>             </div>             <!--DEFECTS-->             <h2>DEFECTS</h2>             <div>                 <table>                     <thead>                         <tr>                             <th>Name</th>                             <th>Rating</th>                         </tr>                     </thead>                     <tbody>                         <tr>                             <td><input type="text" name="attr_defect_name1"/></td>                             <td><input type="number" name="attr_defect_rating1"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_defect_name2"/></td>                             <td><input type="number" name="attr_defect_rating2"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_defect_name3"/></td>                             <td><input type="number" name="attr_defect_rating3"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_defect_name4"/></td>                             <td><input type="number" name="attr_defect_rating4"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_defect_name5"/></td>                             <td><input type="number" name="attr_defect_rating5"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_defect_name6"/></td>                             <td><input type="number" name="attr_defect_rating6"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_defect_name7"/></td>                             <td><input type="number" name="attr_defect_rating7"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_defect_name8"/></td>                             <td><input type="number" name="attr_defect_rating8"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_defect_name9"/></td>                             <td><input type="number" name="attr_defect_rating9"/></td>                         </tr>                         <tr>                             <td><input type="text" name="attr_defect_name10"/></td>                             <td><input type="number" name="attr_defect_rating10"/></td>                         </tr>                     </tbody>                 </table>             </div>         </div>         <!--column3-->         <div class='sheet-col'>             <label>Original Purpose</label><textarea name="attr_original_purpose"></textarea>             <!--CRUX-->             <table>                 <tr>                     <td><input type="number" name="attr_durability"/></td>                     <td>Durability</td>                     <td><button type='roll' value='/roll @{durability}d10'></td>                 </tr>                 <tr>                     <td><input type="number" name="attr_buffer"/></td>                     <td>Buffer</td>                     <td><button type='roll' value='/roll @{buffer}d10'></td>                 </tr>                 <tr>                     <td><input type="number" name="attr_size"/></td>                     <td>Size</td>                     <td><button type='roll' value='/roll @{size}d10'></td>                 </tr>                 <tr>                     <td><input type="number" name="attr_power"/></td>                     <td>Power</td>                     <td><button type='roll' value='/roll @{power}d10'></td>                 </tr>             </table>             <h2>Thresholds</h2>             <!--OS-->             <div>                 <table>                     <thead>                         <tr>                             <th>DigiCon+Buffer</th>                             <th>Mods</th>                             <th>OS Threshold</th>                         </tr>                     </thead>                     <tbody>                         <td><input type="number" name="attr_digicon+buffer" value="@{buffer} + @{digicon}" disabled="true"/></td>                         <td><input type="number" name="attr_os_mod" value="0"/></td>                         <td><input type="number" name="attr_os_total" value="@{digicon+buffer} + @{os_mod}" disabled="true"/></td>                     </tbody>                 </table>             </div>             <!--Damage-->             <div>                 <table>                     <thead>                         <tr>                             <th>Durability + Size</th>                             <th>Mods</th>                             <th>Damage Threshold</th>                         </tr>                     </thead>                     <tbody>                         <tr>                             <td><input type="number" name="attr_durability+size" value="@{durability} + @{size}" disabled="true"/></td>                             <td><input type="number" name="attr_damage_mod" value="0"/></td>                             <td><input type="number" name="attr_damage_total" value="@{durability+size} + @{damage_mod}" disabled="true"/></td>                         </tr>                     </tbody>                 </table>             </div>             <h2>Inventory</h2>             <label>Space</label><input type="text" name="attr_space" value="lengthX widthY heightZ"/>         </div>     </div> </div>
1439801693
Finderski
Plus
Sheet Author
Compendium Curator
In the code above it would help if you bold the code that seems to be giving you problems (i.e. bold the line with the button you are testing, and then bold the various lines that are referenced by that button).  You don't need to repost the code, just edit your post above and then save the edits.
G V. said: In the code above it would help if you bold the code that seems to be giving you problems (i.e. bold the line with the button you are testing, and then bold the various lines that are referenced by that button).  You don't need to repost the code, just edit your post above and then save the edits. will do.
1439854460
Finderski
Plus
Sheet Author
Compendium Curator
In my test campaign this works: <tr> <td><input type="number" name="attr_dex+ref" value="(@{dexterity} + @{reflexes})" disabled="true"/></td>         <td><input type="number" name="attr_interaction_pool_mod" value="0"/></td>         <td><input type="number" name="attr_interaction_pool_total" value="[[@{dex+ref} + @{interaction_pool_mod}]]" disabled="true"/></td>         <td><button type="roll" name="attr_interaction_roll" value=" /roll @{interaction_pool_total}d10r10 "></button></td> </tr> Hope this helps.
1439856788

Edited 1439856845
Lithl
Pro
Sheet Author
API Scripter
Yes, I believe the problem was the space before the d10. A die with no preceding number is parsed as 1 die ("d10" becomes "1d10"), and with no operator between the pool attribute and the 1d10, the dice engine sees an error. Removing the space changes it from a number, a missing operator, and 1d10 to being a pool of d10s.
Brian said: Yes, I believe the problem was the space before the d10. A die with no preceding number is parsed as 1 die ("d10" becomes "1d10"), and with no operator between the pool attribute and the 1d10, the dice engine sees an error. Removing the space changes it from a number, a missing operator, and 1d10 to being a pool of d10s. i think I understand, but I'm not trying to make it 1d10, I'm trying to make the number of d10s equal to the pooled stat before it.
G V. said: In my test campaign this works: <tr> <td><input type="number" name="attr_dex+ref" value="(@{dexterity} + @{reflexes})" disabled="true"/></td>         <td><input type="number" name="attr_interaction_pool_mod" value="0"/></td>         <td><input type="number" name="attr_interaction_pool_total" value="[[@{dex+ref} + @{interaction_pool_mod}]]" disabled="true"/></td>         <td><button type="roll" name="attr_interaction_roll" value=" /roll @{interaction_pool_total}d10r10 "></button></td> </tr> Hope this helps. thanks, it works now.
1440000719
Lithl
Pro
Sheet Author
API Scripter
Grim G. said: Brian said: Yes, I believe the problem was the space before the d10. A die with no preceding number is parsed as 1 die ("d10" becomes "1d10"), and with no operator between the pool attribute and the 1d10, the dice engine sees an error. Removing the space changes it from a number, a missing operator, and 1d10 to being a pool of d10s. i think I understand, but I'm not trying to make it 1d10, I'm trying to make the number of d10s equal to the pooled stat before it. Exactly, which is why the space was the problem. With the space, the system thinks you want 1d10 (and gets confused by what it thinks is a missing operator). Without the space, you have a pool of d10s.