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] Macro buttons in chat, not working the way I expect

Hello, I am hoping to find some expert help.  I have created individual macros for each 5e condition.  The macro puts a condition marker on the token and puts out the OGL info on the condition.  The macro code is below: &{template:npcaction} {{rname=**BLINDED**}} {{description=A blinded creature can’t see and automatically fails any ability check that requires sight. Attack rolls against the creature have advantage, and the creature’s Attack rolls have disadvantage.}} !token-mod --set statusmarkers|!bleeding-eye When this macro is run, I get the following in the chat window: I then made another macro to put the condition macros into the chat window: ***Conditions*** [Blinded](!#Blinded) [Charmed](!#Charmed) [Deafened](!#Deafened) [Frightened](!#Frightened) [Grappled](!#Grappled) [Incapacitated](!#Incapacitated) [Invisible](!#Invisible) [Paralyzed](!#Paralyzed) [Petrified](!#Petrified) [Poisoned](!#Poisoned) [Prone](!#Prone) [Restrained](!#Restrained) [Stunned](!#Stunned) [Unconscious](!#Unconscious) [Dead](!#Dead) When I click the Blinded button, it changes the condition marker, but it doesn't put the description in the chat area.  Is there a reason it doesn't put the description in the chat area, and is there a way around it?  Thanks in advance for any help you can provide!!!
1479084149

Edited 1479084188
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
You are currently using API command buttons, which require some html escapes to function they way you want them to. See the API command button wiki for more details:&nbsp; <a href="https://wiki.roll20.net/API:Chat#Entering_API_Buttons_In_Chat" rel="nofollow">https://wiki.roll20.net/API:Chat#Entering_API_Buttons_In_Chat</a>
Scott C. said: You are currently using API command buttons, which require some html escapes to function they way you want them to. See the API command button wiki for more details:&nbsp; <a href="https://wiki.roll20.net/API:Chat#Entering_API_Buttons_In_Chat" rel="nofollow">https://wiki.roll20.net/API:Chat#Entering_API_Buttons_In_Chat</a> Perfect! &nbsp;Thank you for your help!
1479085655
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Np, happy rolling
1479086026
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
I should note, that if you are making your command button menu macro as a global macro, save it somewhere else (word, notepad, etc) as reopening the macro to edit it will parse out the html entities, breaking the macro if you save it that way.