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

Help, How do to use macro without Filling chat with nonsense code

I am currently using "Ammo" ad "Roll20 Audio Master" API's so when i use an attack it plays a sound effect and tracks ammo, the main issue is when i run the script macro specifically as soon as it gets to the "}}" line it fills the chat with weird looking code, im super unknowledgeable when it comes to this stuff so if anyone can help that would be appreciated. Screenshots for the weapon attack as well as resulting chat entry included
1613383316
Oosh
Sheet Author
API Scripter
Try ending your description field with a {{ double brace. The character sheet places {{ braces }} around every text input when it constructs the macro to send to chat, so where you've closed your description property with a }} half-way through, you've left the sheet trying to close out an already-closed property once it gets to the end. Giving it an opening handlebar to close should do the trick, though I haven't really done the whole nesting API commands thing with the 5e sheet.
Oosh said: Try ending your description field with a {{ double brace. The character sheet places {{ braces }} around every text input when it constructs the macro to send to chat, so where you've closed your description property with a }} half-way through, you've left the sheet trying to close out an already-closed property once it gets to the end. Giving it an opening handlebar to close should do the trick, though I haven't really done the whole nesting API commands thing with the 5e sheet. Thank you for your suggestion! I wasn't quite sure exactly where to place the brace so after some trial and error I was able to find the correct location!