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
This post has been closed. You can still view previous posts, but you can't post any new replies.

Would someone be willing to check my short script for an error I can't seem to see?

Hello Roll20, I have created API buttons.  The top one (Move Action) works. The second one (Bonus Action) doesn't.  I just don't see an error....  I have ensured that the link to the corresponding Macro in my collection is correct. If anyone happens to be able to spot my error, it would be appreciated! There are no reported errors in the API sandbox.  When I click on the API button created in the chat window, this appears in the chat window:  #MaelstromInitiative-Bonus Action &{template:npcaction} {{rname=Actions}} } {{description=Choose from the option below to be used for your ACTIONS :[***Move Action*** - Minimum initiative 2](! #MaelstromInitiative-Move)|[***Bonus Action*** - Minimum initiative 2](! #MaelstromInitiative-Bonus Action)|[***Dodge*** attacks against are made with disadvantage, Dexterity saves made with advantage (cannot be reevaluated - Initiative 0)](! #MaelstromInitiative-Dodge)|[***Disengage*** once movement action happens, able to move away from foes without attack opporntunities - Initiative 1)](! #MaelstromInitiative-Disengage)|[***LIGHT weapon OR MONSTER natural weapon attack*** - Minimum Initiative 2)](! #MaelstromInitiative-LIGHT weapon OR MONSTER natural weapon attack)|[***Cantrip OR Spell-like ability*** - Minimum Initiative 2)](! #MaelstromInitiative-Cantrip OR Spell-like ability)|[***REGULAR weapon attack*** - Minimum Initiative 3)](! #MaelstromInitiative-REGULAR weapon attack)|[***Cast a first level or higher spell*** - Minimum Initiative 3)](! #MaelstromInitiative-Cast a first level or higher spell)|[***HEAVY weapon attack*** - Minimum Initiative 4)](! #MaelstromInitiative-HEAVY weapon attack)}} Thank you for your help!
1551749927

Edited 1551749990
The Aaron
Roll20 Production Team
API Scripter
I don't think you can have spaces in macro names.  Try renaming it to: #MaelstromInitiative-Bonus-Action (Usually, it inserts - for space automatically.)
Aww I did not know that Aaron.  Yep that was it. LOL I looked at that script for an hour or more looking for an error.... :D Thank you for your help
Hi Barry, as your question's answered I'll be closing this thread.