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

Question about a number printout

1485108873
Matthew C
Pro
Sheet Author
Hey guys, when I use a dice roll to print out a specific attribute it prints it out as x+x+x-x-x+x OR I need to put it between [[]] and then it shows the actual number but when you float over it it shows the x+x+x-x-x+x in the hover....is it possible to make it so that it simply prints out the number WITHOUT being able to hover over it (Or a way to remove the background from the hover, as it shows a number surrounded by a yellow box) Either of the methods would be awesome, but I would like the most for it to have no hover.
1485113615
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Not without making a custom roll template, inline rolls simply are that way. You might be able to use stylish to affect how they look on your computer only, but that would probably affect all inline rolls. you could double wrap the attribute call in online roll brackets and then the hover would at least not show the attribute's formula.
1485114925
Matthew C
Pro
Sheet Author
how does one double wrap? I would love to at least get rid of the formula :D
1485115585
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Just double inline roll it: [[ [[1d6]] ]]
1485122505
Matthew C
Pro
Sheet Author
Thanks and if anyone has an idea on how to make it disappear completely (with a template or otherwise) I would love it. The bonuses and penalties come from fill able forms and disabled auto calculated inputs. PM me if you need the full code to give me the answer or ask here, I am easy and welcome all the help :D
Try sending it as a /desc if it is just you using it as the dm/gm.
The API Script PowerCards has a feature that turns inline rolls into plain text. !power {{ --name|TXT Demonstration --Like this:|[[ [TXT] 1d20 ]] or [[ [TXT] 1 + 0d0 ]] }}
1485164772
Matthew C
Pro
Sheet Author
Thanks Chris but it is something all players need to be able to see And thanks Sil, but I do not want to use an API as I am designing a sheet for an upcoming game and do not want to lock people out if they do not pay for a subscription due to the api
Matthew C said: And thanks Sil, but I do not want to use an API as I am designing a sheet for an upcoming game and do not want to lock people out if they do not pay for a subscription due to the api Note that only the game's creator needs an active Pro subscription to use the API in a game.
1485222049

Edited 1485222787
Sounds like a custom Roll Template is your best bet. For example, here's how the 5e OGL sheet styles some of its Roll Template inline rolls.
1485260220
Matthew C
Pro
Sheet Author
Thanks Rab, yeah I remember that, but as I am not working for Roll20 I am not looking to make the GMs have to pay to play the game using my sheet. Although I would still recommend it as lighting etc makes the game much better :p Thanks Sil, but it is in a custom roll template, this is it: &{template:Criticalhitlocation}{{attacker=@{character_name}}} {{weapon=@{Manifestations1_Name}}} {{damage=[[@{Manifestations_Slot1_Damage}]]}} {{roll=[[1d100]]}} It is the damage one that I want just the number. But when I made a second roll table it simply printed the &{template:XXX} part instead, so maybe there is a special way of doing it :p
Oh when you said "upcoming game" I thought you meant a game you were going to run, but you meant a new game system that is coming out and you want your sheet available to all users. I understand now.
1485317995
Lithl
Pro
Sheet Author
API Scripter
Matthew C said: Thanks Sil, but it is in a custom roll template You can change the CSS to modify the appearance of anything in your rolltemplate output, including what an inline roll looks like. I don't think you can prevent the on-hover behavior (the popup showing the roll details), but you can for example get rid of the yellow background.
1485345414
Matthew C
Pro
Sheet Author
Brian you are a god :p now to figure out how to get rid of the yellow border, the hover part is fine with the double inline roll, it just shows a number anyways, it is the border I dislike :p So if you know exactly how to remove that part I can apply it, otherwise I will research it, thanks :D and no problem Rab, I was not exactly fully clear :D
1485346011
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Take a look at the template definitions in the OGL sheet for an example: <a href="https://github.com/Roll20/roll20-character-sheets/tree/master/5th%20Edition%20OGL%20by%20Roll20" rel="nofollow">https://github.com/Roll20/roll20-character-sheets/tree/master/5th%20Edition%20OGL%20by%20Roll20</a>
1485368444
Matthew C
Pro
Sheet Author
thanks