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

Calling a Rollable Table from a button in an attack description

I've defined rollable tables for the effects of a miss for a player that throws bombs.  I'd like to have quick links for these tables appear in the description on the attack so that the player can easily click them when we determine the attack misses. I've tried: 5 ft. radius burst on miss roll [Explodes]([[1t[MissedBombEffect]]]) & [Lands]([[1t[MissedBombLocation]]]) This produces the desired look: But clicking on either link generates a 404 error.  How do I properly reference the roll tables?
1667698029
Oosh
Sheet Author
API Scripter
You need to escape your inline roll brackets, or the parser will try to resolve the roll immediately, not when the button is clicked. A backtick will also stop the 404: [Roll 1d4](`[[1d4]])
Brilliant! Thanks Oosh.  It is working now.  I understand what's going on with the escape characters, but what is the ` doing?
1667859499
Oosh
Sheet Author
API Scripter
Honestly, I'm not entirely sure. It stops the URL from being treated as a navigable link (which leads to the 404, because the browser is trying to find a website with the text string you've entered). I'm not sure if the backtick is an intentional Roll20 control character to make sure the following text is sent to the webapp and not navigated by the browser, or a coincidental shortcut due to its Javascript effects.