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

Remove pink box from Roll Table inline roll.

1761148214

Edited 1761148326
Hi.  I have made a macro that simply calls a rolltable in the chat.  "/em The Locked Chest opens, revealing a [[1t[Loot-Table]]] !" Unfortunately it displays with a pink box surrounding the result. Whilst I know how to remove that from regular text [content](style="border:none;background-color:transparent;padding:0px;color:#3452eb;font-weight:bold;), I don't know how to format the macro to remove the pink box from the rolltable result (I basically don't know where to put which brackets!) Can anyone help? (see below for example of formatting with the horrible pink box!
1761150872

Edited 1761150967
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
You need more than just the link trick because it can't affect inline roll styles. The only way to remove the inline roll styling is to put an extra set of opening inline roll brackets before the inline roll. This will then force all inline rolls after that point to display as text. However, that of course puts an extraneous set of square brackets in your text, which isn't ideal. To solve that, you can put the extra opening inline roll brackets in the link trick and set the link's style to not display. e.g.: [[[]("style="display:none;) [[1d6]] Note that there is a downside to using this technique. All inline rolls from this point on in the line will display as text only instead of rolls. Also, note that the link trick requires that a double quote precede the style declaration (see the double quote before style in my example above).
I am not sure where I should put this within my macro.  /em The Locked Chest opens, revealing a  [[[]("style="display:none;) [[1t[Loot-Table]]] ! I went with this method, and the result is that it does not display the rolled item, but instead displays a 0? The first is the issue with the purple box, the second is with the new styling put in. Sorry if I'm being really stupid here!   
1761175597

Edited 1761175616
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Ah. Since it's a rollable table it's not going to work because the roll result is 0. Unfortunately there isn't a way to remove the background from the table rolls then.
1761191175
timmaugh
Forum Champion
API Scripter
If it were not an /em statement, you can use the MetascriptToolbox to remove the pink box. Using the suffix .value on an inline roll will remove the roll formatting and leave a single returns from a rollable table in the line, or using the suffix .items will return one-or-more items from a rollable table without the formatting: [[1t[Loot-Table]]].items If you had to roll multiple times against the table, you can see results like this: [[1t[Loot-Table]]].items(, ) That will separate the results by a comma and space. These have to be in API commands, so you lose the ability to do an /em command... but you can use messages that build similar output (like with templates).
1761194849
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
ah, true, I forgot you have pro. Scripts could definitely accomplish this.
timmaugh said: If it were not an /em statement, you can use the MetascriptToolbox to remove the pink box. Using the suffix .value on an inline roll will remove the roll formatting and leave a single returns from a rollable table in the line, or using the suffix .items will return one-or-more items from a rollable table without the formatting: [[1t[Loot-Table]]].items If you had to roll multiple times against the table, you can see results like this: [[1t[Loot-Table]]].items(, ) That will separate the results by a comma and space. These have to be in API commands, so you lose the ability to do an /em command... but you can use messages that build similar output (like with templates). I'm guessing writing API commands/scripts would be a lot more complex than this is however? (this is literally so my players can press a button and see the randomly generated loot from their chest in a cool way)
1761251100
timmaugh
Forum Champion
API Scripter
James/Duck said: I'm guessing writing API commands/scripts would be a lot more complex than this is however? (this is literally so my players can press a button and see the randomly generated loot from their chest in a cool way) Not really: !&{template:default} {{name=Loot Result}} {{The locked chest opens to reveal...=[[1t[Loot-Table]]].items(, )}}{&simple}
1761254361
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Depending on what sheet you are using, some have templates that will remove or use a different formatting for table results. This will work with the D&D 5e (2014) Sheet without any scripts: &{template:atk} {{desc=You open the chest to reveal a... [[1t[Magic-Item-Table-A]]]}}
Oh I see what you mean. Yes, I had reverted to using a roll table and using Recursive Tables for formatting. It wasn't quite what I was looking for, but it looks like removing the pink box from an inline roll (not a rolltable) resulted in every answer just saying "0". Thanks for the help :)