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

Ability Command Buttons need to echo carriage return?

Good day, I am sure this is just something simple I am missing... I am trying to create an  Ability Command Button, I want to define a macro that rolls abilities from a character sheet, in essence this seems simple enough, and what I have almost works, but it seems I need to echo a line return / carriage return to my macro? The characters name is BloodHound, and in this sample, I want to roll his Agility, eventually I want a full pull down list, but one step at a time. @{BloodHound|agilitybutton} is what i need, I can generate that in my macro, I also am using the "selected" it echos to the chat window as that, but does not roll the ability. if I copy the command  text generated by my macro, from the chat window, and then paste it back into chat, and enter a carriage return, it works. I have tried several methods to set a line break with nothing seems to work so far, so trick to this?  @{@{selected|character_name}|agilitybutton} I have tried appending carriage returns in several ways, /n , /r,  
 nothing seems to be working here. Something I am missing here? Thanks for any assist
1585833738
GiGs
Pro
Sheet Author
API Scripter
You cannot include html entities in an attribute call, nor can you construct one from its parts. An attribute call must always be complete. This is because of roll20's order of operations - when you run a macro, the first thing roll20 does is check all attrbute calls in the macro, and retrieves their values. Then it resolves any queries, and other constructions. So attribute calls must be complete - if incomplete, those attribute calls will fail, and the macro will also fail. Building menus that contain macro calls is very tricky, often needing a lot of html replacements. i would recommend looking into Chat Menus as a much easier alternative.
Thank you for the suggestion, I will check it out.