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

[Help] Macro button drop-down syntax for a single option

1606966111
Pat
Pro
API Scripter
I've got an unusual situation where a dynamically constructed macro button can have a select list with a single option, and this seems to cause problems with the formatting as it spits out the visible name and the value in a value box instead of a select - should I always load a dummy option in the list to prevent this? 
1606967331
The Aaron
Roll20 Production Team
API Scripter
Can you just skip the select box altogether and just take the single value?  Maybe rename the button from "select whatever" to "use VALUE"?  Or, if it's an icon sort of interface, maybe just whisper to the caller something like "Using VALUE (only one option)" or some such?
1606967452
Pat
Pro
API Scripter
I would, but it's the special case of selecting teleport destinations in circumstances where a GM can lock one or more of the "floors" or "locations" - so they disappear from the list if the player "enters" the teleport location without the proper keys.  So a single option or even a message that the buttons are broken would give an indicator of its functionality while not letting them go to more of the options...