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

Nesting /fx effects inside a macro

Hi guys, Plus user here. If i may, i would need your help for a simple question. I just made some basic FX macros (like: /fx breath-fire @{target|Attacker|token_id} @{target|Target|token_id} ) for the main fx effects i would like to use. Is there a way to make a macro with a drop down menu with all the (eight) fx macro i made? Every time i try to make one (like in: ?{Effect|Fire Breath,#Fire |Lightning Strike,#Lightning|Eldricht,#Eldricht |Magic Missile,#Magic |Acid Arrow,#Acid } it does work just for the first effect -  the others just dont work. What am i doing wrong? Any help? Thanks in advance, and sorry for my poor english (and forgive me if i posted in the wrong section).
1608657137

Edited 1608657315
Jordan C.
Pro
API Scripter
What type of result are you getting when you select the others from the drop-down? It is important that the macro names in the query match exactly to the name of the macro you want called, otherwise it will result in the chat just outputting "#macro-name"
1608658723
Andreas J.
Forum Champion
Sheet Author
Translator
I think you need to add a space after #Lightning , or at least that selection wont work. When having #macros in dropdown selections, you always need to have a space after the name. You have the space after all other #macros. <a href="https://wiki.roll20.net/Complete_Guide_to_Macros_%26_Rolls#Roll_Queries" rel="nofollow">https://wiki.roll20.net/Complete_Guide_to_Macros_%26_Rolls#Roll_Queries</a>
Put a space after the commas, if this query is nested inside of another you will need to use escapes for the comma, hashtags, and pipes.&nbsp; Personally I didn't use a query, instead I put each of those fx commands inside of all my spell output entries as api buttons.&nbsp; That way they are single clicks.&nbsp; I have a sheet set to all players and I insert the code into each players spell cards or if they are an attack/save template I add it into the middle desc field.&nbsp;&nbsp;
The first weird thing happens as soon as i use the "main" macro: before i select a nested macro in the drop down menu the mouse cursor turns into a crosshair, asking me to target a token. If i then select the first option It does work properly. If i select another option from the drop down menu, no effect happens, the mouse crosshair turns back to a mouse cursor but the request to select a target token doesnt disappear.
1608659556
Jordan C.
Pro
API Scripter
Do you select targets before selecting an option? The way it is set up, the target and source need to be selected and you can choose the effect afterwards.
The spacing was the problem. I've fixed it. Thanks a lot everybody.