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

HTML Value Formula for Roll Help

1524686413

Edited 1524686525
Working on a very very basic character sheet. I have a Roll button for attacks that work just fine but the output shows as 1d20 + (Bunch of Math here). How can I make that math formula a simple name or number and hide the equation? Code right now: <input type="number" name="attr_Attack" min="1" step="1" value="0" /> Mod <input type="number" name="attr_AtkMod" value="(floor((@{Attack}-10)/2))" disabled="disabled" /> <button type='roll' name='roll_Attack' value='/roll 1d20 + @{AtkMod}'></button> What ends up showing up is: rolling 1d20 + (floor((12-10)/2)) (6)+(floor((12-10/2)) I want to hide the floor((##/2)) stuff. How can I do that? Something like "rolling 1d20 + Attack Mod" "(6) + 1"
1524688519
Finderski
Plus
Sheet Author
Compendium Curator
Try this... value='/roll 1d20 + [[@{AtkMod}]]' If you don't want to see the dice output, you could also this: value='Attack roll: [[ 1d20 + [[@{AtkMod}]] ]]' Hope this helps.
1524688654

Edited 1524688773
I think I tried that but it just gave me an error I'll attempt it again. EDIT: Worked. Thank you very much.