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

Nested macros not displaying correctly?

Hi everyone, New to GMing in Roll 20, and I've been setting up some macros for the first time. I'm trying to build a list of actions for a monster within a roll template, that can launch the actions via buttons. The ability macro I have is: "/emas The Ochre Jelly slams against @{target|(Primary target)|token_name}! [[1d20+8]] vs **AC** Hit: [[2d6 +1]] Damage, and the target takes ongoing **Poison** damage! (Save ends)" The following macro gives me my roll template and button (with no spaces between the characters from "!" to ";"): "/w gm &{template:default} {{name=test}} {{Test=This is a test}}{{[SLAM](!  & # 13 ;%{Ochre Jelly|Slam}}}" But it doesn't display the die rolls, instead it displays all the math as text. As well, it prompts me to select a target immediately, instead of waiting for me to launch the button. What am I doing wrong, and how can I fix this? Thanks!
If you are referencing a macro from a character sheet's Ability tab then you can use the  ability command button  format. [SLAM](~Ochre Jelly|Slam)
1488149222

Edited 1488167813
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
If you want to keep using the API command button syntax, you need to trick the chat parser into reading the inline roll as text (or html encode the inline roll brackets in %{Ochre Jelly|Slam} so that they don't cause a roll until you click the button. Unless you're trying something fancy like passing roll query selections to iteratives of an ability, the ability command button syntax Ed linked to above will be what you want as it is a lot simpler.
I'd second using an Ability Command Button. However, it looks like you didn't escape the %, which is done to prevent the Ability call from parsing before the button is pressed.