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

Macro Assistance Needed - sorting rolls

1697344600

Edited 1697344655
Hi, I'm new to creating macros and im not a pro user and I've been searching and sifting through many posts and guides for help. I have a specific thing I want to do using a macro if possible and I have most of what I need done already however I want to know if there is a way of listing out everything that gets rolled from a table. I am helping a dm with a pokemon campaign and one of the things we can do is use dowsing rods to search for crystal shards and we want to use a table to show which shards we find. Ideally we would want it to show the token/image colours but I noticed when using a template it shows the name/text instead of the image without having pro or recursive tables. For context I am trying to use a template with the macro which makes 2 rolls, the first is 4d6 and the 2nd is using the result of that roll (example 3) and then roll from the table that many times (in this case 3t(table)). Because I am using a template for the result it will only show the first roll from the table as a result, I want to know if it can show all of the results in the template. Here is what I have so far: Macro is:=   &{template:default}  [[[[4d6s>4!]]t[Shards]]]   {{name=Dowsing for shards}} {{Item=Dowsing Rod}} {{result= $[[0]] Shards}} {{Shards Found=  $[[1]] }} As shown in the screenshot this roll has 2 successful shard finds and the table has rolled orange and violet, however in the template it only shows orange. Is there a way for me to separate the colours into a full list of whats been found instead of a single? Any help would be greatly appreciated
After talking with my DM he has managed to add recursive tables so what I want to ask is how can I use the recursive table in the template so that the Shard results (orange and violet) now show the icons from the shard table
I actually managed to get what I wanted using the Recursive Tables here is the screenshot of the result and the macro I built for it. !rt[showicons|iconlabel%%on|iconscale%%2.5em] &{template:default} {{name=Dowsing for shards}} {{Item=Dowsing Rod}} [[[[[@{Drago|OccultEducation}d6s>4!}]]t[Shards]]]  {{result= $[[0]] Shards}} {{ Shards Found=  $[[1]] }}
1697397634
GiGs
Pro
Sheet Author
API Scripter
Nice work :)
GiGs said: Nice work :) would you know of a way to sort the icons? like how if you roll a 4d6 you can write 4d6s and it will sort the rolls highest to lowest. do you know if its possible to do that with the table results for the icons iv shown?