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

Saving results in a variable

Is there a way to hold the result of a die roll in a variable and can that variable be hidden? e.g For a normal set variable I put ?{Pwr Attk|5} and can call it up later with ?{Pwr Attk} and it will use the 5 set earlier without asking me. However if I put ?{Pwr Attk|1d6} it will not calculate the result until late so it just ads a 1d6 roll wherever I put ?{Pwr Attk}. The second part of my question is, is there an alternative to ?{variable} that will set a variable without the popup box asking me what I want it to be. The simplest of the codes I want to work looks like this: [[?{Value|1d10} +floor(?{Value}/10)*1d6! +ceil((?{Value}/10)-1.1)*1d6!<1]] If I can get the above to work everything else is just modifiers.
1443655219
Pat S.
Forum Champion
Sheet Author
The standard roller can not do that but I believe you can do that with an API (pro subscription feature) script. If you are interested in that I would recommend you posting a few questions in the API forums about what you want. Someone there should be able to help or answer your questions.