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

[5e OGL] Nested macro question

1489748317

Edited 1489749218
So I am trying to make a clickable table a la Taking20's dice roller. I am using the 5e OGL sheet and I have the specific dice macros working fine but when I try to wrap them all up I am having issues. Here is the macro I have (without the spaces between ! and &.) /w gm &{template:npcaction} {{name=Choose your Dice}} {{rname=Dice Roller}} {{[D4](! & #13;#d4) [D6](! & #13;#d6) [D8](! & #13;#d8) [D10](! & #13;#d10) [D12](! & #13;#d12) [D20](! & #13;#d20) [D100](! & #13;#d100) [D??](! & #13;#d??)}} and [this]( <a href="http://imgur.com/a/MqO5a" rel="nofollow">http://imgur.com/a/MqO5a</a>) is what that outputs. I tried substituting some of the closing curly brackets with & #125; but that corrupted the chat log so I am going to assume I did that wrong. Oh and to sweeten the pot, the first time I made this macro up it worked fine, clickable boxes and everything. Edit: I am also having this same issue with another nested, clickable macro table thing, so I probably have a fundamental issue with something.
I'm not an expert with this kind of thing, but if you had the macro working fine on the first time, it could be that the macro editor is eating up your html replacements.&nbsp; If you're using those html replacements, you really need to edit them in another application (I use textedit for Mac, but really anything that can work with plain text), then just paste the whole thing into the macro edit box, and don't open it again.&nbsp; As soon as you open it, your html replacements will be gone, and you will have to do it all over again. Hope this helps!
You'll need to add your Command Buttons within the {{description}} field.
1489793302

Edited 1489793466
Gozer the Gozerian said: I'm not an expert with this kind of thing, but if you had the macro working fine on the first time, it could be that the macro editor is eating up your html replacements.&nbsp; If you're using those html replacements, you really need to edit them in another application (I use textedit for Mac, but really anything that can work with plain text), then just paste the whole thing into the macro edit box, and don't open it again.&nbsp; As soon as you open it, your html replacements will be gone, and you will have to do it all over again. Hope this helps! yeah I have a google doc, but even pasting it in and then saving it does not work. I just get&nbsp; this Silvyre said: You'll need to add your Command Buttons within the {{description}} field. I'm not sure I understand. Lemme see if I am picking up what you are putting down. The Command Buttons, aka [Button Name](#Macro) need to be in the {{description}} field. Isn't that the bold part /w gm &{template:npcaction} {{name=Choose your Dice}} {{rname=Dice Roller}} {{[D4](! & #13;#d4) [D6](! & #13;#d6) [D8](! & #13;#d8) [D10](! & #13;#d10) [D12](! & #13;#d12) [D20](! & #13;#d20) [D100](! & #13;#d100) [D??](! & #13;#d??)}}
Sky Rhetoric said: You'll need to add your Command Buttons within the {{description}} field. Isn't that the bold part **{{[D4](! & #13;#d4) [D6](! & #13;#d6) [D8](! & #13;#d8) [D10](! & #13;#d10) [D12](! & #13;#d12) [D20](! & #13;#d20) [D100](! & #13;#d100) [D??](! & #13;#d??)}}** That's an empty field. You'll need to add the "description=" in there.
1489793493

Edited 1489793609
Silvyre said: Sky Rhetoric said: You'll need to add your Command Buttons within the {{description}} field. Isn't that the bold part **{{[D4](! & #13;#d4) [D6](! & #13;#d6) [D8](! & #13;#d8) [D10](! & #13;#d10) [D12](! & #13;#d12) [D20](! & #13;#d20) [D100](! & #13;#d100) [D??](! & #13;#d??)}}** That's an empty field. You'll need to add the "description=" in there. Oh jeeze....lol thanks! Edit: yup works great, haa
No problem! Good luck!
1489805065
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
See the wiki for all the details on the ogl roll templates:&nbsp;<a href="https://wiki.roll20.net/5e_OGL_roll_template" rel="nofollow">https://wiki.roll20.net/5e_OGL_roll_template</a>