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

Call Roll Query results in button?

I am trying to construct a char sheet button that uses the default roll template. When the player clicks it, the button prompts for any Modifier via a roll query, and then subtracts the modifier from the result of a 3d6 roll to get under a target number. The button I have is this: button type="roll" value="&{template:default} {{name=@{Skillname}}} {{Success=@{Skillroll} or less}} {{Modifier=?{Modifier|0}}} {{Result=[[3d6]]}}" name="roll_Skill"></button> It works fine to roll 3d6. What syntax to I use to apply the results of the Modifiers query to the inline 3d6 die roll?
1711841493
GiGs
Pro
Sheet Author
API Scripter
Do you want the 3d6 roll to be showed separately? If not, you can do this: <button type="roll" value="&{template:default} {{name=@{Skillname}}} {{Success=@{Skillroll} or less}} {{Modifier=?{Modifier|0}}} {{Result=[[3d6-?{Modifier}]]}}" name="roll_Skill"></button> You have the query listed already, and can reuse a query as many times as you want.