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 here.
×
×
Cookie Preferences
We use Cookies to help personalize and improve Roll20. For more information on our use of non-essential Cookies, visit our Privacy Policy here.
This works fine from within my API button... !token-mod --set statusmarkers|yellow;8 However, I'm trying to do this... !token-mod --set statusmarkers|yellow;[[1d4+4]] And nothing happens. Is this the correct syntax?
You need to prevent the inline roll from happening before you push the button. Generally, you do that by HTML escaping part of it: [Push Me](!token-mod --set statusmarkers|yellow; [ [1d4+4]]) When you have problems with Buttons, push up in the chat after trying it to see what it sent to the API. Without the escape, this is what I was seeing: !token-mod --set statusmarkers|yellow; Rolling 1d4+4 = (1)+4'>5