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 .
×
Stuck in a login loop? Try manually signing out and back in before launching your game. Otherwise, contact the Help Center!
Create a free account

Crafting macros

I'm slow. First time I've actually tried to implement macros. I open the dialog box, name it with no # or spaces, then write the function, /roll 1d20+...new line... /roll 1d6+ and place it on the bar. I click on the macro, it does nothing. I type in the macro command in the chat box, it often does nothing (checked one today, some worked yesterday, some didn't).
I took the pluses out and they're working. I'll just have to add in any bonuses.
Are you trying to set it up to allow a variable number to be added to the die roll? *edit to add* Also are you using 3D Dice?
I was trying to do that, but "edit to add?" I saw the add button which brought up a window with an edit button. And I'm not using 3D dice 'cause I can't get 'em to work. I'm not really a star w/ technology.
I think you can use the plus on the end of the macro if you type in the macro name and the number you want added. I don't think you can use it with the macro button.
@bloodymage can you please paste an entire example macro that didn't work. It could be a problem with the parser. I can add a unit test with your roll expression to make sure it is all working as expected.
If you dont put a space before the + , this will cause an error
Sorry about the *edit to add* confusion. Typically when I realize I've forgotten something on a forum post instead of just making another post I'll edit my last one if there's been no reply. *edit to add* is my way of saying "Hey I edited this and what follows this line is what was added."
This was my "d6attack" macro: You are attacked! /roll 1d20+ /roll 1d6+
Tried putting a space before the "+" and it didn't change anything.
So you can only have the very last expression in the macro be partial. If you did: You are attacked! /roll 1d20+5 /roll 1d6+ That would work and the number you enter after the #macro would be added to the d6 roll. We're talking about ways to add variable support to macros but as with everything dev time and ui complexity are two big factors we spend time considering to make sure we do it well.