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 that display only Icons

I'm new to the whole aspect of scripting and programming in Roll20, so I'm unfamiliar with terms like API and such. What I'm hoping to do is a very simple concept of just creating a custom die using rollable table. Executed via a macro,  you would roll a die and get the result in the chat. The result would be an image, rather than number. I'm looking to create a macro/script that allows a player to roll up to 3 of these custom die and have their results display one next to the other in the chat (just as images/icons). idk if this has been done and with my very limited knowledge in scripting, I'm not sure how to achieve that using macros.
[[1t[NameOfTable]]] Case sensitive for name of the table and if you want it to display an image have all the options in the table be images, no text.  If you also need to weight the sides theres an option to add weight to them in there.  Tables are craftable from the collections tab.  
1642619221

Edited 1642619242
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Two ways of doing it. Both involve setting up a rollable table of images. Each table item can have text, and image, or both. The image should come from something in your user Art Library. It could be a marketplace image, but you will run into fewer problems later on if this is something you have uploaded. If you input no text label, then all rolls will display the die face, but have a value of zero. If you need numerical results as well as the graphic, put the number in the text field. You can then roll for the image in chat: /roll 1t[ABCTable] and the result will display: Or you can press the token button next to the table name. This will generate a rollable table token that you keep on the VTT. The side can be chosen or rolled randomly. Which way you choose is a personal preference. The chat method keeps a record and the text value can be used in formulas. The tabletop method is neater and allows you to visually group or arrange dice.
1642622425

Edited 1642623537
DM
Pro
keithcurtis  That looks like generally what im going for, I'm having a really odd issue at the moment where my macros don't work when clicking on them, both In Bar or when testing. I whipped up this code that worked for me, but now it no longer does or any variation of it  &{template:default}{{name=RollResult}} {{[[1t[TableName]]]}} I have even tested your code and the macro still won't test or do anything, instead in the chat I get the message 'Rolling the dice...' with nothing happening, is it a connection issue? I can't edit Rolling Tables either, its like its stuck. As for the original topic, while its great that I'm getting the images printed out in the chat, is there any way to have the result just be those images? Without the brackets or text? And have the images be side by side rather than separated by row? Thanks for the response!
1642623808

Edited 1642626575
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I am seeing many threads reporting trouble with rollable table performance this morning. I had some issues too this morning on Chrome. I have made a report; devs are aware and working on a fix.  This thread  would be a good place to congregate reports and follow progress. 
1642628999
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Arlin  said: The issue with rollable tables has been resolved! Thanks for your feedback and patience everyone!
oh great to hear it wasn't a personal issue I was having!  My macros work now and I'm able to roll on the table again, what a releif. I'm capable of either rolling the name of the values on the table or use your command to get the icon printed in chat. My goal  is to have the icons printed using the macro without additonal text like rolling 1[TableName] and the null value =0 . I'm ideally looking for a result of the roll to be printed as just the symbol, and when rolling more than one die the results would be stacked one next to the other on the same line, rather than printing a new result for each rolled die. If that's possible.
1642632712

Edited 1642632734
DM
Pro
something along this line (withouth brackets and the text)
DM said: something along this line (withouth brackets and the text) Pretty sure you need Recursive tables to put it in a template.  
Recursive tables? I'm unfamiliar with what that is, how do you make one?
Recursive Tables API Script
huh  that seems exactly what  I'm looking for, how would one integrate this and use it?
Install the RecursiveTables script , then try one of these: !rt[showicons|iconlabel:off] [[3t[Block-Dice]]] !rt[showicons|iconlabel:off] [[1t[Block-Dice]]] [[1t[Block-Dice]]] [[1t[Block-Dice]]]
that worked perfectly! thanks a lot