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

RollTables - Have the result show an image AND the accompanying text in chat (Instead of hovering for Text)

1684828108

Edited 1684828178
Hello All, I have rollable tables that have multiple entries with the same picture because it also determines the level of the mob. If I roll say 8 times, I know what mix of mobs there is in the encounter, but I have to hover over each image to see the text name which shows it's level. Rolling on the table with no images shows the text I need but isn't as intuitive as seeing the pictures? Is there a way to roll on the table so it shows the image then 4 (For a level 4) in the chat itself instead of the 4 being displayed in hover text only? The macro atm is: /gmroll ?{Quantity}t[?{Table Name}] A macro with inline rolls only shows text and only shows the first one. /gmroll [[?{Quantity}t[?{Table Name}]]] How can I get both the image and the text in the chat so its all displayed together? Many thanks in advance :D
1684846503

Edited 1684886762
David M.
Pro
API Scripter
You can do this pretty easily with Scriptcards. The example below rolls a specified number of times on the table "Generic-Commoners". Just change the 3rd line to your table name. !script {{ --#whisper|gm --&tableName|Generic-Commoners --=numRolls|?{How many rolls?|3} --#title|[&tableName] Results --%i|1;[$numRolls];1 --=thisRoll|[T#[&tableName]] --+[img width=32][$thisRoll.tableEntryImgURL][/img]|[$thisRoll.tableEntryText] --%| }}
1684882607

Edited 1684883909
You are a legend, David, thank you! This is exactly what I needed, much appreciated.
1684884053
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
You also (depending on your needs) might want to check out the Faces script. You can filter the results to only include "tieflings" or "guards" based on the name, and then apply the face to select tokens manually or randomly. You can also assign pre-set names and/or token notes/tooltips
Thanks Keith, the follow-up is greatly appreciated. You have both been very helpful for me and hopefully others can benefit too if they stumble across this thread with the same issue. Cheers! :)