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

/me not working when marco is called via roll query marco

1576447057

Edited 1576459066
I'm having trouble using a roll query which calls macros. Here is a macro which I'm using  Glaive-GWM /me slashes furiously with thier glaive with an overwhelming force /roll 1d20 + @{Lougrozu Sted|strength_mod} + @{Lougrozu Sted|pb} -5 and it works normaly like it should. This is the roll query macro I'm using  ?{what type| Stanard , #Glaive-stanard | Standard GWM, #Glaive-GWM | Advantage, #Glave-Ad | Advantage GWM, #Glaive-Ad_GWM | Disadvantage, #Glaive_Dis | Disadvantage GWM, #Glaive-Dis-GWM    } However it prints the following  /me slashes furiously with thier glaive with an overwhelming force rolling 1d20 + 5 + 6 -5 ( 20 ) +5+6-5 = 26 How do I fix this issue ?  
1576470113

Edited 1576471052
vÍnce
Pro
Sheet Author
try moving the /me command out of your individual macros and place it before the query /me ?{what type| Stanard , #Glaive-stanard | Standard GWM, #Glaive-GWM | Advantage, #Glave-Ad | Advantage GWM, #Glaive-Ad_GWM | Disadvantage, #Glaive_Dis | Disadvantage GWM, #Glaive-Dis-GWM } Also, you might want to use an inline roll to tighten up the output...? #Glaive-GWM slashes furiously with their glaive with an overwhelming force [[ 1d20 + [[ @{Lougrozu Sted|strength_mod} ]][str] + [[ @{Lougrozu Sted|pb} ]][pb] - 5 ]]
First thing, please try our general troubleshooting steps (1-3) outlined in the  Solving Technical Issues  article. If those do not work, additional troubleshooting steps for Macro issues are outlined below: Review Macro-specific information on the  Specific Use Questions & Macros Forum Review the syntax (i.e. Is all the spelling correct? Are all of your brackets matching and in place?) Double check dependencies (i.e. Do they require scripts to work? A specific updated character sheet?) Delete the Macro and recreate it
1576613003
Ziechael
Forum Champion
Sheet Author
API Scripter
Unable to test at present but it could be because your query result has a space before the macro so your /me is actually resolving to  /me Try removing the spaces before your #
1576613618

Edited 1576613654
Ziechael
Forum Champion
Sheet Author
API Scripter
Couldn't resist testing and taking the space out worked a treat for me, bear in mind that if any of your macros have troublesome characters in them (pipes, commas and end curly braces (that aren't part of an attribute call!) you'll need to make a decision about whether or not to give them the html treatment, sanitise them or have them only work via the query drop down... more on that later if needed ;) I also found that you need to make sure there is a space between your final macro call and the query end } otherwise that last macro will only output #whatever rather than the macro... strange but true. Yours is likely fine since it is on a new line but just worth noting for reference :)
Thanks for the replys. I removed the spaces as suggested by Ziechael and it works perfectly now. Thanks for the help