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

Formatting Inline rolls in chat

Hello again, another question I can't find an answer to. Is it possible to get rid of the background part of the inline table rolls to make it fit it with the static text? Still trying to find an elegant and good looking solution to something that looked like a 3 minute job to me and took me hours of research and forum help. :)
1666630393
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
If this is just a macro, not really unfortunately. If this is a custom character sheet, then, yes you can style the roll template as you please with CSS, or even make a new custom one for your system.
Thank you for your answer. So if I understand you right (please forgive me, despite the hours on rolld20, I still have problems with basic stuff which turns out not to be basic) you can only fully format  a chat output macro if you change the whole game template in an external CSS file that then gets used for everything? (So no like simple HTML or CSS arguments inside the macro?). We use one of the Cyberpunk red character sheets, so that is not custom I guess. Since the rolls from the char sheet have a unique style to them, I can probably access that roll template too and test it there and not just the default? How would one know the name of the included template?
1666632615
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
yes, you can use the sheet's roll template for your macros. As for figuring out how the sheet's roll template works. That depends on how good the sheet's author is with documenting the sheet's features. Or how much you want to dive into the code. The perhaps simplest way to figure out how a given roll is done on the sheet is to: click a roll button on the sheet to send a roll click in the chat message box in the right panel press the up arrow on your keyboard copy the text that gets populated there to somewhere that you're comfortable editing text (I'd recommend VSCode using Andreas' Roll20 macro extension) Edit it as needed Test it in game repeat steps 5-6 until you get the output you want Repeat 1 - 7 for each output you need. If you know some HTML and handlebars, then you could also dive into the sheet's code on the repo and see what the code for the roll template(s) look(s) like.
Thanks again. Overwhelming for such a task but extremely helpful for me to understand any of that. Do I risk char values in the game being lost if I try out different Char sheets?
1666635527
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Depends on the character sheets involved. Char sheets might use the same attribute names, or they might not. I'd recommend trying out different sheets in a separate game.
1666642707

Edited 1666642910
You cannot include images uploaded to the rolld20 library into a macro chat messages either, hm?
1666645092

Edited 1666645496
Kraynic
Pro
Sheet Author
There might be an easier way, but this is the way I go about this: Drag the image you want to use to the VTT. Select the image and hit Z to get it to pop up/enlarge. Right click the image and select "open image in new tab". Switch to the tab with the image and copy the url. In the macro where you want to use an image, insert it by using the format of: [x](pasteurlhere) The url will have a ? and a string of numbers after the image format type (png?15322937825 as an example), and you will want to delete the ? and numbers following. Run your macro and the image should be rendered in chat. Edit to add in image and macro text: &amp;{template:default} {{name=Wagon Test}} {{=[x](<a href="https://s3.amazonaws.com/files.d20.io/images/58845576/3WkaH7wPNpA5MDh2IdYjkQ/original.png" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/58845576/3WkaH7wPNpA5MDh2IdYjkQ/original.png</a>)}}
I wasn't able to find out how to get the URL of the library pics. Thank you, much appreciated.