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

Macros not usable inside inline rolls.

For some reason, I can use "/r #test + 5" but "[[#test + 5]]" doesn't work. Is this a bug, or just unusable atm?
1374025885
Gauss
Forum Champion
I am unable to confirm, it works normally for me. What are you currently using for the body of #test? - Gauss
My #test macro is: [[floor((@{Valrok of Ol|AC}-10)/2)]], but I tried changing it to "/r floor((@{Valrok of Ol|AC}-10)/2)" and it still didn't work.
I also tried a macro that was just 1d6+5, and I still wasn't able to
Just had a friend try it, he can't either. Also tried it in a different campaign, still a no-go. P.S. Sorry for posting a whole bunch in a row,
1374028037
Gauss
Forum Champion
Ok, lets simplify the macro testing since your #test macro is rather complicated.  Please try the following macro:  Name: #test  Body: 1d20+5 Type into the chat window like this:  [[#test  then hit enter then type ]]  then hit enter Let me know what the results were please. - Gauss
Ok, So I tried that and it works(Outputted an inline roll with a result on 21). Seems like it's only not letting me use a macro inside of an inline roll if the macro has an inline roll or "/r" in it. So I can use the macro in an inline if it says "1d20+5" but not if it says "[[1d20+5]]" or "/r 1d20+5"
1374029482
Gauss
Forum Champion
Aurion, please send me a join link. Id like to talk in real time so I can better try to figure out what you need to accomplish.  - Gauss
You can't nest inline rolls, and you can't do /slash commands in inline rolls. So this is a limitation rather than a bug. If what you're trying to do is: [[floor((@{Valrok of Ol|AC}-10)/2)]], then rather than doing [[#test]], you would just do "#test" and hit enter, and it would work. Alternatively, you could define #test as just [floor((@{Valrok of Ol|AC}-10)/2) (without the brackets), and then you could do [[#test]] or /roll #test as needed.
Sorry I didn't notice there was a response to my last post. Thanks to both of you for helping me out, I've got it now. =)