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

Rollable Tables: keep Pictures with style

Hello, I've got a simple problem without a simple solution^^' Basically I want wo build a custom char-sheet for a system with custom dice (HeXXen 1733) where I need to show the rolled sides 'cause their meaning changes with the intended use. My first search for redesigning the dice within Roll20 wasn't successful. So I've researched and tryed to get going with the rollable tables. Works so far but it is a bit ugly - basically the problem from this guy:&nbsp; <a href="https://app.roll20.net/forum/post/3443873/rollable-table-in-macro" rel="nofollow">https://app.roll20.net/forum/post/3443873/rollable-table-in-macro</a> , but I can't force all my players to install a browser extension and a custom template with the pictures doesn't seem possible. The next thing I've found was the API Script from The Aaron (<a href="https://app.roll20.net/forum/post/5954076/script-update-recursivetables-now-with-rollable-table-images-and-better-prefixing-rules-for-roll-templates" rel="nofollow">https://app.roll20.net/forum/post/5954076/script-update-recursivetables-now-with-rollable-table-images-and-better-prefixing-rules-for-roll-templates</a>). This works fine so far but there is the problem, that players sometime have to roll 10-20 dice and than you can't see the Chat anymore :D (e.g. the pictures are to big). Does someone knows a way for me to solve my problem? As a Pro-user an API-Script will do as well. Thanks in advance
1571232649

Edited 1571232903
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Have the table generate any number of rollable tokens. Keep these on the table, in some area designated to keep dice. You can either select one and right click to choose "Random Side", or since you have access to scripts, create a token-mod command to roll them. The dice faces will change randomly, they won't clog up chat, and they can even be visually separated or grouped. !token-mod --set currentside|*
1571289024
The Aaron
Roll20 Production Team
API Scripter
I can add a max avatar size option to RecursiveTable if that would help.&nbsp;
Thanks to keith and Aaron for the suggestions! My solution was (with the help of a coder-friend) to edit the size in Aarons API-Script at this point: parseInlines = function(inlines,opts){ const styles = { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[...] i: { 'max-width': '2.5em' , 'max-height': '2.5em' }, [...] }; Now it looks even with 15 dice acceptable :) If it would be an regular option within (like&nbsp; !rt[showicons|height: 2.5] [[2t[Dice-Of-Fate] ]] ) it may could help others with the same problem of to small oder big outputs.
1571361722
The Aaron
Roll20 Production Team
API Scripter
Nice! I updated the script to provide that as an option:&nbsp; <a href="https://app.roll20.net/forum/post/7844658/script-update-recursivetable-now-with-rollable-table-images-and-better-prefixing-rules-for-roll-templates/?pageforid=7844658#post-7844658" rel="nofollow">https://app.roll20.net/forum/post/7844658/script-update-recursivetable-now-with-rollable-table-images-and-better-prefixing-rules-for-roll-templates/?pageforid=7844658#post-7844658</a> Should show up in the 1-click shortly.&nbsp; Looks like this: !rt[showicons|iconlabel:off|iconscale:2.5em] [[2t[Fate-Dice-Composite] ]]