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 .
×

Custom Roll Template Help

Here are segments of html code for a custom character sheet I am writing, but I am not the most experienced with coding in general: Normal <input type='radio' value='0' name='attr_Multiplier' checked='true'/> <button type='roll' value='/roll (@{Multiplier} + @{OneBlade})d10!sd>7' name='roll_OneBladeCheck'>One Blade</button> <input type='radio' value='1' name='attr_OneBlade' /><input type='radio' value='2' name='attr_OneBlade' /><input type='radio' value='3' name='attr_OneBlade' /><input type='radio' value='4' name='attr_OneBlade' /><input type='radio' value='5' name='attr_OneBlade' /><input type='radio' value='6' name='attr_OneBlade' /><input type='radio' value='7' name='attr_OneBlade' /><input type='radio' value='8' name='attr_OneBlade' /><input type='radio' value='9' name='attr_OneBlade' /><input type='radio' value='10' name='attr_OneBlade' /> <br> Now I want the roll to show in a template similar to the default: &{template:Check} {{name=SkillCheck}} {{Success= *NOT SURE HOW TO SHOW RESULTING SUCCESS FROM ROLL}} {{Severity=*NOT SURE HOW / WHERE TO INSERT INFO ABOUT SEVERITY FOR A ROLL}} {{Total=[[Success + Severity]]}} If anybody can offer some help it would be greatly appreciated! 
1573308883
GiGs
Pro
Sheet Author
API Scripter
It's not clear from your code, but you cant use the same roll or its result in multiple places easily. You can display a roll in miltiple places, but you cant add two separate rolls. How you build a rolltemplate is described here:&nbsp; <a href="https://wiki.roll20.net/Roll_Templates" rel="nofollow">https://wiki.roll20.net/Roll_Templates</a> You want to move your rolltemplate roll into the button value, like &lt;button type='roll' value='&amp;{template:Check} {{name=SkillCheck}} {{Success=[[(@{Multiplier} + @{OneBlade})d10!sd&gt;7']] }}' name='roll_OneBladeCheck'&gt;One Blade&lt;/button&gt; Notice I've put [[ ]] brackets around the roll. Thats to make sure the output is a number, so it gets rolled when the rolltemplate is sent to chat. If you want to enter the severity, you can. If you ask the players for it, use a roll query. like so &lt;button type='roll' value='&amp;{template:Check} {{name=SkillCheck}} {{severity=[[?{Severity?|7}]] }}{{Success=[[(@{Multiplier} + @{OneBlade})d10!sd&gt;?{Severity?|7}']] }}' name='roll_OneBladeCheck'&gt;One Blade&lt;/button&gt; I'm just guessing what severity does here, since your post doesnt include that information. BUT! If you want to add two separate values together, like this &lt;button type='roll' value='&amp;{template:Check} {{name=SkillCheck}} {{Success=[[2d6]]}} {{Severity=[[1d6]]}} {{Total=[[Success + Severity]]}}' name='roll_OneBladeCheck'&gt;One Blade&lt;/button&gt; It's not possible. You cant do this (only API scripts can do this). It's important to realise: you cant perform any calculations inside a rolltemplate. They are just for displaying information. Any rolls have to be done according to the standard roll20 macro system, and roll20 macros have no memory: you cant add one roll to a completely separate roll.&nbsp;
Thank you so much! This was incredibly helpful!