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

[Help] - how to make a dice roll macro more legible

Hi there. I'm trying to write a dice roll macro for my Forbidden Lands game using the dice rolling API/template. Normally you only need d6's but I need a d100 for one particular chart.  My macro looks like this: /w GM &{template:forbiddenlands}  {{name=}} {{name=Roll 1d100}} {{subtitle}} {{free-text}} {{d100-roll=[[d100]]}} And the output looks like: How do I get the actual roll to look prettier? At the very least how do I get rid of the yellow and increase the font size of the "45"? Does this require an editing of the API script?  It appears that there are graphic representations for the digits 1 through 6, but not 7,8,9, and 0 otherwise I figured out how to edit the default die rolling macro.  Could I use another dice API and just use the graphical output for those dice rolls without messing out the one for Forbidden Lands? In other words could I use one of the D&D dice rollers?
So I think I am able to answer my own question at this point. I figured out how to use the default template. And without getting the author of the forbiddenlands template to make the edits, what I got is what I got. As long as the dice is a d6 or less I can still have it look pretty though:
1586218740

Edited 1586723441
vÍnce
Pro
Sheet Author
Hi Michael, the sheet's roll template includes all the individual dice images for a d6, d8, d10, d12, and d66. So there isn't anything written into the template to cover a d100 roll. ;-( Unfortunately there's only a single d10 artifact die or else you could roll 2d10 and display both rolls like the way d66 is done... but I think I could simply add onto the current roll template for the d66 roll so that someone could increase the range of the roll from 1d6 to 0-9.  This would give a roll from 1-100.  ie rolling a "0 1" = 1 and a "0 0" = 100.  Would that work? the macro would look something like (note the roll is using d10-1 instead of a d6); @{selected|whisper_option} &{template:forbiddenlands} {{character_name=@{selected|character_name}}} {{character_id=@{selected|character_id}}} {{name=D100 Roll}} {{subtitle}} {{free-text}} {{d66-die-one=[[ 1 ]] }} {{d66-roll-one=[[ 1d10 -1 ]] }} {{d66-die-two=[[ 1 ]] }} {{d66-roll-two=[[ 1d10 - 1 ]] }} {{footer}}
I think it would. Funny thing is I tried the 2d10 thing you mentioned and couldn’t figure out why I was getting a flattened die (no number and the square of the die compressed like a pancake) whenever it wasn’t a 1-6. I just don’t know enough how all the coding is done. But based on what you are describing, that would solve the issue. 
Vince said: the sheet's roll template includes all the individual dice images for a d6, d8, d10, d12, and d66. So there isn't anything written into the template to cover a d100 roll. ;-( Unfortunately there's only a single d10 artifact die or else you could roll 2d10 and display both rolls like the way d66 is done... but .......................... Vince, What is the script to use the other dice? I tried just swapping out the "d6" for a "d8" and the like, but when I run the script it doesn't show any die face above a "6". And when I replace the d66, it doesn't work either. I get the pancake. Trying to noodle this out on my own, but I think I'm stumped.  I tried this as well with the messed up results:
So this is turning into a window into my brain as I continue to noodle stuff through. I found your main sheet development thread and have been reading my way through it. I found the script for the artifact dice.  ex: {{artifact-die-eight=[[ 1 ]] }} {{artifact-roll-eight=[[1d8]] }} I was able to get my macro to sort of work with this. What I noticed is that instead of printing the die face 6, 7, or 8, you instead repeat 2 and 3 (iirc) but show the number of successes, i.e "x's" on the die face. That works when using the die as an artifact die where all you are doing is needing the number of success, but it doesn't work if the intention of the 1d8 roll is to generate a number 1-8 for a chart or the like. One often has to roll for treasure and the size range seems to vary across the standard dice pool range (d6, d8, d10, d12).  But if I understand you solution for my original d100 question, you would be adding additional dice faces to one of the d6's and then selecting what range to roll on that die. I'm sure there is a smarter way of explaining all of this, but hopefully you get it. :-) 
1586280001
vÍnce
Pro
Sheet Author
Sounds like you got the gist of it.  I'll try and get this added for next week's updates. Or, you could get it sooner if you're willing to use a custom sheet template and my latest code base...
1586723355

Edited 1586723379
vÍnce
Pro
Sheet Author
Expanding the d66 dice from 1-6 to 0-100 has been included in this week's update.&nbsp; While this doesn't affect the sheet in any way, you can now expand&nbsp;{{d66-roll-one}} and {{d66-roll-two}} for larger rolls in your custom macros.&nbsp;&nbsp; <a href="https://app.roll20.net/forum/permalink/8456396/" rel="nofollow">https://app.roll20.net/forum/permalink/8456396/</a>
Awesome!! Thank you!