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

Adding text to macros/rolls?

Wasn't sure if this was a thing, and I've looked to no avail. In my sessions, there will be times where I have no idea who's rolling for what, or someone will be confused to who's rolling for what when it happens (even if I explain it). I was just curious to know if there was a way I could add text to a roll to specify what it is (i.e. "E-11 (ACC Roll): /roll 1d20 ). When I have tried so far, either the roll won't happen because of the text in front of the "/roll" command, or I have to use the [[ ]] brackets (which doesn't exactly show the roll or tell how many successes happened.

This isn't a huge deal if it's not really possible, but it'd be nice to have.
April 09 (10 years ago)

Edited April 09 (10 years ago)
The Aaron
Roll20 Production Team
API Scripter
I would suggest going with the inline Rolls personally:
Bob rolls [[1d20+3]] to attack
but you should be able to apply labels to a /roll:
/roll 1d20+3 Attack for Bob

With the inline rolls, you can point to the roll and see an expansion of what was rolled.

See the Wiki for more info: https://wiki.roll20.net/Dice_Reference
April 09 (10 years ago)

Edited April 09 (10 years ago)
Ah. I was hoping for a way to put the text and such before the roll text (when using /roll ), not after.

But, hey, something's better than nothing, I suppose!

Many thanks.
April 09 (10 years ago)
Pat S.
Forum Champion
Sheet Author
Sorry Taylor but the roll command has to be processed before any text. The inline roll works really well as it keeps the rolls very neat and specific but you also have to ability to hover over the inline roll to see all the rolls also.
You can always use a /me emote before you do something.

/me looks around and listens carefully...
/roll 1d20+11 perception
April 09 (10 years ago)
Uh... You just type the text. Then on the next line, you can do your roll.


Mark G. said:

You can always use a /me emote before you do something.

/me looks around and listens carefully...
/roll 1d20+11 perception

This one works pretty perfectly, actually! :D
(Using "/me" in my chat, below)



Many thanks to everyone here who gave suggestions!

Also @Benson ; I know I could have just typed then use a space, but that just looked like a chat thing and, in the midst of people typing all at once, it's likely to get mixed up, whereas with this "/me" thing that was suggested, it actually displays a nice, orange banner of sorts with the roll right under it, which makes it more-easily noticeable and even organized. :3
April 10 (10 years ago)

Edited April 10 (10 years ago)
If you like the banner formatting, check out the Default Templates.

If you want to make a shared macro out of it for everyone to use, you can use the Default roll template that's available whether you use character sheets or not.

This will use the name of whatever token is selected at the time, ask what the reason for rolling is, and what dice to roll.

&{template:default} {{name=@{selected|Token_Name}}} {{ ?{Reason for Roll?}:=[[ ?{Dice Roll?|1d20} ]] }}

April 11 (10 years ago)

Edited April 11 (10 years ago)
Okay, sorry about this, but... question again:

Is there a way to use the template above to just, like... display a message?

I want to have something that I don't need to dig into macros to in order to display alerts or something for the game (example: "[Character]'s shields have been disabled!" (just so that I can have something that stands out blatantly in the chat messages/box, to further avoid confusion about the status of certain characters or have my "Alerts" be "lost in the crowd" of otherwise simple and constant text, where the group is concerned. I've been fiddling with the template to try and get something like it, but all I ever get from it is a blank purple rectangle. ;-;

I'd opt to use the "/me" command after scrolling all through my list of characters to select them as the "As:" target, but that's time-consuming (plus slightly annoying). Not to say I WON'T use it, but if an alternative or shortcut exists, that'd be preferred.
April 11 (10 years ago)
Gen Kitty
Forum Champion
As the GM, you can do /emas SOMENAME EMOTE, which will let you do something like:

/emas Bob's shields have been disabled!
^ PERFECT. Thank you!
April 11 (10 years ago)
Gen Kitty
Forum Champion
If you're willing to become a mentor, The Aaron has a nice little notes script that lets you do !note BLAH BLAH BLAH BLAH and it comes up in its own uniquely colored box (keyed to player color, automatically picks the right contrasting text color). And then there's the Powercards script which could be used for this sort of stuff too. If you want to get all fancy. ^_^
April 11 (10 years ago)

Edited April 11 (10 years ago)
https://app.roll20.net/forum/post/1426229/tips-and...

If you're not a mentor or just don't like using API scripts, you can use this little trick for your monsters. It doesn't work for players though, because they don't have access to the /as or /emas chat commands. The /as command lets you speak as someone else without using the dropdown menu, such as below...

/as "Bandit" Give us all your gold or you die! >> shows up in chat as >> Bandit: Give us all your gold or you die!

This means you can use /as to separate attack name, attack roll, damage, effects, and such like so...

/emas The shambling mound lurches forward and tries to slam you into the ground.
/as "Slam" Reach 10 ft
/as "Attack" [[1d20+5]] | [[1d20+5]] vs AC
/as "Damage" [[1d8+3]] bludgeoning

The shambling mound lurches forward and tries to slam you into the ground.
Slam: Reach 10 ft
Attack: [23] | [10] vs AC
Damage: [7] bludgeoning
April 11 (10 years ago)

GenKitty said:

As the GM, you can do /emas SOMENAME EMOTE, which will let you do something like:

/emas Bob's shields have been disabled!

You don't even need to use a name. /emas can be used for anything.

/emas The orc charges forward and swings his greataxe in a vicious arc at your neck.
April 11 (10 years ago)
Gen Kitty
Forum Champion
Mea culpa, I was sleepy and mentally mixed up /as and /emas
what's the difference between /emas and /desc, other than the color and formatting are different?
April 11 (10 years ago)
That's it.