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

Change value based on roll query

1494870833

Edited 1494871064
Alex R.
Sheet Author
Is it possible to change a value based on the result of a roll query? For example, say I have a die roll with a ?{Did you succeed?|Yes|No} prompt.  If the user picks "Yes", I want to increase the number of successes, which is stored in an <input class="sheet-num-successes" type="number" value="0"> tag on the character sheet. Is this possible to do?
Macros and abilities cannot change values in characters by themselves. You'd need to write or install a script using the API for that.