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

script generated chat button weirdness

I am having a problem with buttons created in chat by a script. I have tried looking for an answer unfortunately my google-fu has failed me. In short, I have a script that will list out loot for the players to take, share, or destroy. Some buttons work and some don't and I can't seem to zero in on why. So this button works: <a href="https://app.roll20.net/editor/!loot%20--take%20-MEyqCxI3-Ga2OOdNIu3,-MJbvrxj7IVGuDKOiP7a,2,name#thigh-high%20boots#endname,desc#Made%20of%20whaleskin.#enddesc" rel="nofollow">https://app.roll20.net/editor/!loot%20--take%20-MEyqCxI3-Ga2OOdNIu3,-MJbvrxj7IVGuDKOiP7a,2,name#thigh-high%20boots#endname,desc#Made%20of%20whaleskin.#enddesc</a> As well as this button: <a href="https://app.roll20.net/editor/!loot%20--take%20-MEyqCxI3-Ga2OOdNIu3,-MJbvrxj7IVGuDKOiP7a,5,name#copper%20medalion#endname,link#https://s3.amazonaws.com/files.d20.io/images/115558289/p85h0EOZRdpiUuysia7qjQ/med.jpg?1585684865#endlink" rel="nofollow">https://app.roll20.net/editor/!loot%20--take%20-MEyqCxI3-Ga2OOdNIu3,-MJbvrxj7IVGuDKOiP7a,5,name#copper%20medalion#endname,link#https://s3.amazonaws.com/files.d20.io/images/115558289/p85h0EOZRdpiUuysia7qjQ/med.jpg?1585684865#endlink</a> This button even works: <a href="https://app.roll20.net/editor/!loot%20--take%20-MEyqCxI3-Ga2OOdNIu3,-MFn-LciUI-dAbck8jof,5,name#copper%20medalion#endname,link#https://s3.amazonaws.com/files.d20.io/images/115558289/p85h0EOZRdpiUuysia7qjQ/med.jpg?1585684865#endlink,desc#MEH%20BAH#enddesc" rel="nofollow">https://app.roll20.net/editor/!loot%20--take%20-MEyqCxI3-Ga2OOdNIu3,-MFn-LciUI-dAbck8jof,5,name#copper%20medalion#endname,link#https://s3.amazonaws.com/files.d20.io/images/115558289/p85h0EOZRdpiUuysia7qjQ/med.jpg?1585684865#endlink,desc#MEH%20BAH#enddesc</a> And when I say works, I mean clicking on the button run the script as expected (placing the item in the player's treasure handout). But this button does not work: <a href="https://app.roll20.net/editor/!loot%20--take%20-MEyqCxI3-Ga2OOdNIu3,-MJbvrxj7IVGuDKOiP7a,4,name#Conspirator's%20Coat#endname,link#http://journal.roll20.net/handout/-MJPWpQdV9HZw6nnFrRk#endlink,desc#This%20magic%20longcoat%20is%20adorned%20with%20raven%20feathers%20and%20carved%20jet%20buttons.#enddesc" rel="nofollow">https://app.roll20.net/editor/!loot%20--take%20-MEyqCxI3-Ga2OOdNIu3,-MJbvrxj7IVGuDKOiP7a,4,name#Conspirator's%20Coat#endname,link#http://journal.roll20.net/handout/-MJPWpQdV9HZw6nnFrRk#endlink,desc#This%20magic%20longcoat%20is%20adorned%20with%20raven%20feathers%20and%20carved%20jet%20buttons.#enddesc</a> When I say does not work, the button acts as expected - pointer changes, text is underlined, etc. But clicking on it does not run the script. I have done several things to isolate, fix the issue. 1. removed the apostrophe from the name 2. removed just the desc#-#enddesc portion 3. removed just the link#-#endlink portion 4. added to the script logic to replace all spaces with underscores and the reverse the change when writing to the handout The only thing that worked was removing both the desc#-#enddesc &amp; link#-#endlink portions leaving just the name. But other links work with those and even with both of them. It isn't a length issue because removing either portion reduces the length to be inline with the buttons that work. What am I missing? Any help will be appreciated.
1602738428
GiGs
Pro
Sheet Author
API Scripter
Your button links dont work in the forum. Try copying the text from the macro or ability and paste them here, as well as the script you're using (if its long, post it somewhere like pastebin.com and link it here).