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

API script to format rolling table output

1452939240
uhu79
Sheet Author
Hi community, first I am impressed by the contributions I have seen already. Great stuff, great community! Second I am not able to adapt most of the scripts I found to my need as I have little to no skills in JS and programming. What I want to do:&nbsp; <a href="http://static1.squarespace.com/static/52ed62c3e4b0" rel="nofollow">http://static1.squarespace.com/static/52ed62c3e4b0</a>... I am using rolling tables and want to hide/grey out the command output in the chat window &nbsp;- just as shown on the picture. Nothing else. That would make me happy. I have found some scripts doing great stuff with the rolls but they are very hard for me to understand. Did anyone do just what is shown on the picture? Thanks! cUhu
1452939423

Edited 1452939456
Try putting them in an inline roll like this: [[ 1t[TableName] ]] It'll have the yellow background of an inline roll though. Unless you need to see the numbers rolled and not just the final result.
1452948507
uhu79
Sheet Author
Hi HoneyBadger, thx for the quick reply. However,&nbsp;inline is not possible as I need to show the dice rolled. They are custom images and many of them have a meaning other than the pure numerical value.
1452972379

Edited 1452972403
Are you customizing the CSS? (It looks like you're using something like:) @namespace url(<a href="http://www.w3.org/1999/xhtml" rel="nofollow">http://www.w3.org/1999/xhtml</a>); @-moz-document domain("app.roll20.net"), domain("app.roll20dev.net") { .formula[style="margin-bottom: 3px;"] { &nbsp;&nbsp; &nbsp;font-size: 10px; &nbsp;&nbsp; &nbsp;opacity: 0.1; } } If not, a solution might simply be to use a browser add-on like Stylish to handle the above. If it's for the benefit of your players, you might ask them to do the same? Might be at least a nice solution in the interim.
1453028784
uhu79
Sheet Author
Hi Silvyre, you are 100% right. as I've found out in the meantime, this has been achieved with overwriting the Roll20 CSS with a custom CSS. The package is available via "Stylish" but not working very well any more (roll20 CSS has probably changed the last year or so). The original formatting of the formula was done with (I guess) #textchat .formula:not(.formattedformula) { /*display: none;*/ opacity: .1 !important; font-size: 10 px !important; transition: opacity .15s ease-in-out !important; } does that look like it? My CSS-lore is as old as my JS-lore and that's like 15 years...
1453048995
uhu79
Sheet Author
I used the css-snippet you provided and it works just fine. Thx!