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 .
×

Random Hit Location and Image in Chat

1668857476

Edited 1668857679
I'm running Mechwarrior Destiny and hit locations are very important. I'm trying to make a random hit location table that shows the hit location in the chat after the roll. I'm having some trouble with the finer points of getting it to work. I'm using a rollable table with the appropriate rates. Generally, it works find and produces the proper results, but when I roll on the table using a macro: /em Rolls on the Hit Location Table and hits the [[1t[MechHitLocation]]] Example of what it produces: Now, I've got a images in the table as seen here: The images aren't appearing in the chat. I only get the text. Now if I roll on the table directly through the Collection tab under Rollable Tables I get this result Now, obviously I don't expect the emote to appear, but why isn't "Left Arm (11)" showing as the result. Also, the image is rather distorted and I'd love to have it be fairly large so it's more visible and easier to read. I read there are limitations without having the pro account and needing to do specialized mods. The ultimate result I would want is something like this (which I faked with a macro that produces that result): Is there a way to achieve this result without doing Mods with a pro-account? I'm really not experienced enough with scripting to really do this on my own. Some sort of conditional statement where dice are rolled would be fine a sort of Roll 2d6, if 8, then show Torso Image. Note: I'm quite fond of what I see with the Forged in the Dark and The Sprawl mod, but I know that's done with specialized mods. 
1669705108
GiGs
Pro
Sheet Author
API Scripter
You are hitting the limits of the free roll20  macros and rollable tables systems. I don't think it's possible to do what you want.
1669752804
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Yeah, I just fiddled with it, hoping that there might be a workaround with the recently added ability of the chat window to parse image URLs, but the way that table rolls are passed makes it impossible.
1669753727

Edited 1669753782
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
It's possible that someone really clever with macros could do something with a query, but I can't figure out a way past the Order of Operations: [Image](?{Image|1,<a href="https://s3.amazonaws.com/files.d20.io/images/307542307/YxisXFYrwLUyrDw6hd-ASA/original.png|2,https://s3.amazonaws.com/files.d20.io/images/307542295/1kkCmqMIkfOOpmQvGDBIBA/original.png" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/307542307/YxisXFYrwLUyrDw6hd-ASA/original.png|2,https://s3.amazonaws.com/files.d20.io/images/307542295/1kkCmqMIkfOOpmQvGDBIBA/original.png</a>}) i.e. this will serve up images based on the query, but I don't know if a query can be randomized.
A variation of Skill check with text result could be used to conditionally show the images.