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

Help, I can't configure macros

Help, I can't configure macros I do everything according to the instructions from the wiki, but it does not work. What am I doing wrong ? instructions: ?{Choose an Attack Melee, #Melee-attack | Ranged, #Ranged-attack | Psychic, #Psychic-attack } My: ?{ Choice |  #vvv |  #ttt  }
1668522124
Ziechael
Forum Champion
Sheet Author
API Scripter
When using a drop down selector you need to give your choices a label... note in the instructions you have "<label>, <result>" whereas yours is just "<result>". Try something like: ?{Choice| Option 1, #vvv | Option 2,  #ttt }
Ziechael said: When using a drop down selector you need to give your choices a label... note in the instructions you have "<label>, <result>" whereas yours is just "<result>". Try something like: ?{Choice| Option 1, #vvv | Option 2,  #ttt } macros don't work the text is simply output: #ttt
1668524824
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Do you have a macro called "ttt" (or any of the others) in the collections tab?
1668525936

Edited 1668525947
1. You need to make sure you have a pipe after the 'query label' 2. You need to make sure that there is not a space at the beginning of each 'query result' (or in your case, that there's no space after each vertical pipe seperator) ?{Choose an Attack| Melee,#Melee-attack | Ranged,#Ranged-attack | Psychic,#Psychic-attack } So yours would be: ?{Choice| #vvv| #ttt} The next issue you're going to run into is that macros are fully expanded before  queries, so whatever you have inside the #vtt and #ttt macros will be substituted into the query.  If either of those macros contains any macro control characters (closing brace } or comma , or vertical pipe |) then the query will break, because Roll20 will assume that those characters are part of the query.  In that case, you'll have to use html entity replacements  inside the macros to get them to work in the query. At that point it's usually easier to switch to using chat menus , as they are easier to maintain and edit. 
Yes keithcurtis said: Do you have a macro called "ttt" (or any of the others) in the collections tab?