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

Styling a macro as a normal dice roll?

1736369283

Edited 1736369353
What I am trying to do here is to display a fixed number as if it came from a roll of a dice. I would like to create a macro where I input 3 numerical values, and they are displayed in chat as if they were the result of a dice roll, with the small dice in the background. So, say I input the numbers 10, 1 and 3 in my macro, and I would like the chat to show this: Is this even possible?
1736369961

Edited 1736369976
Gauss
Forum Champion
Hi Nakku - Velo,  Please post the macro you are using. 
I don't have a macro, it's just a question about the styling. The idea behind this is that I got some bluetooth dice, and I found an integration where you can show the number rolled via macros, so every time you throw your dice, the number appear in chat. But so far, I only managed to show them as plain text in chat. And I was trying to style it as if it was a normal /roll command.
1736453298

Edited 1736453340
Gauss
Forum Champion
The creator of the integration is controlling how they are output, you would probably have to take it up with them.  My guess though is that since the rolls are not coming through via the /roll command the integration cannot fake the /roll command output either. 
1736455937

Edited 1736456103
timmaugh
Pro
API Scripter
I have no idea if this is possible, but if 1) you can reference the physical dice by some BT handle, and 2) you can control the syntax of the output statement, and 3) you're OK with inline roll syntax, then you could do... some... things. Imagine you have to roll 2d20 and keep the highest one (ie, roll with advantage). If you had 2 physical bluetooth d20s named "bt20a" and "bt20b", you could set up your output statement something like: [[ {bt20a,bt20b}kh1 ]] Which is effectively like having the chat roll the dice with a command like: [[2d20kh1]] ...or [[{d20,d20}kh1]] If you're only getting the numeric result to hit chat, then the above probably wouldn't show that you had rolled d20s, but that might not matter. All you'd need to show is what each die had rolled, and you could hover over the inline roll result to get that. A roll of 2d8+10 could be managed like: [[ btd8a+btd8b+10]] *shrug* I don't like the /roll output, anyway -- too chat-spammy for me -- but that's not necessarily everyone's taste. I am with Gauss on this, however, that you probably won't be able to mimic the /roll output. The above suggestion (if all of the imagined prerequisites are fulfilled) would give you an option for some sort of deeper integration. EDIT I probably didn't make it clear that in your BT DICE INTERFACE you would use a syntax like: [[ {bt20a,bt20b}kh1 ]] ...and that would resolve the dice and send a resulting command line to Roll20 that was more like: [[ {5,16}kh1 ]] ...and you would see the result as an inline roll that showed 16 (with the ability to hover and see the other roll)