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

Nesting Macros Issue

1533063941

Edited 1533064144
Jelly
Pro
Marketplace Creator
Greetings! I'm a relatively new comer to the macro scene and am trying to create some nesting macros for dice, tables, and etc. But I keep stumbling into a problem. Let me show you. So creating the macro (the base one) works fine besides a slight issue that bothers me with it being set to /w gm, but still shows me rolling something in chat. I'll show a picture as well as underline that issue. But the BIG issue is the problem with nesting. The code I'm using to nest is like this (Using a D10 as an example)  /w gm &{template:npcaction} {{rname=Dice Roller}} } {{description=Select your die type: [D10](!&#D10)}} And this should give me a prompt in chat that is whispered and shows me a button to click so I can roll the D10 macro I made. But alas, it just gives me the name and a button that doesn't roll anything. Anyone else run into this problem and or found a solution to it? Thanks! ^The whisper issue for the D10 macro. Not a big deal, but don't like my players knowing I'm doing stuff in the background ;) ^And the big issue. This is the dice roller and when I click D10 (Which I did in the screenshot) it should roll a d10 like the macro above did. But instead it gives me a chat prompt that blank (and not whispered btw). Also ignore the D12, I got rid of it.
1533064229
The Aaron
Pro
API Scripter
Try: /w gm &{template:npcaction} {{rname=Dice Roller}} } {{description=Select your die type: [D10](!
#D10)}}
1533064459
Jelly
Pro
Marketplace Creator
Well won't you look at that. Thanks Aaron! But anyone got an idea why it still shows me in chat while it's whispered (Aka the blue notification under the whisper)? I can ignore it, but if I can fix it then I would defiantly go for that over ignoring it 
1533064972
The Aaron
Pro
API Scripter
probably you have a trailing return in your macro, giving it a blank line.  Go to the end of your macro and make sure there aren't any blank lines.
1533065101
Jelly
Pro
Marketplace Creator
Yep, that seemed to be it. Fixed it and it looks perfect. Thanks again!