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 .
×

Can't /roll in a nested macro, help?

Hi, I want to make a DnD 5e saving throw macro that asks if I have (dis)advantage and which stat to use. Currently my setup is as follows: Macro called Saving-Throw : ?{Type |     Normal, #normal |     Advantage, #advantage |     Disadvantage, #disadvantage } And the macro # normal looks like (Assume I have correctly changed every illegal character (|, , }) into html codes (&#124 etc. I'm posting it like this for clarity) : /roll 1d20 + ?{Attribute |     Strength , 0 |     Dexterity , 5 |     Constitution , 3 |     Intelligence , -1 |     Wisdom , 2 |     Charisma , -2 } + ?{Proficiency? | No , 0| Yes ,  2 } However, when I use the Saving-Throw macro, it correctly asks for advantage but only prints "/roll 1d20 + " and whatever the bonus is, rather than rolling a die. In fact, if the macro says only: /roll 1d20 using the Saving-Throw macro still only prints "/roll 1d20" without rolling anything. I had this working just a moment ago, what's wrong with this one?
1587302416
GiGs
Pro
Sheet Author
API Scripter
You've mentioned the html entities, so the most likely thing is this Normal, #normal |     Advantage, #advantage |     Disadvantage, #disadvantage } there's a space after each comma there. Everything after the comma gets printed to chat, including that space. For /roll to work, it must be at the start of the line, a space stops it working.  So change it to this and test Normal,#normal |     Advantage,#advantage |     Disadvantage,#disadvantage }
I had no idea a space there could mess things up. Removing the space fixed the problem, thank you so much!
1587304072
GiGs
Pro
Sheet Author
API Scripter
You're welcome. :)