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 Macro text Problem

Hello i just started to create some macros and finally got a nesting macro to work. The problem I'm finding is that when my macro calls to another the text in the macro gets cut off and so does the rest of the macro. Here is what I'm doing. Skill ?{Skill|Disarm, #Disarm |False Body, #False-Body |} Disarm Disarm - Target a trap, lock, or contraption. You either disarm the trap, open the lock, or shut down the contraption. If skill fails, trap is activated, lock is broken, or contraption remains functional. [[1d100+5]] False Body False Body The Illusionist gains concealment, and leaves a false body of themselves behind to trick the enemy. [[1d100+15]] So When i use Skill and select Disarm it comes out like this. Disarm - Target a trap It cuts the rest of the macro off and doesn't give anything same with False Body . When i click on just Disarm it does the full text, does anyone know what I'm doing wrong?
The problem that you are running in to has to deal with the commas ( , ) in your macros. Commas are a special character in queries like pipes ( | ) and end-curly brackets ( } ). In order to get your macro to work properly you will need to use the HTML encoded values for these characters. Comma( , ), pipes ( | ), and end-curly brackets ( } )
So i replaced all the special characters with what you gave me, Comma( , ), pipes ( | ), and end-curly brackets ( } ). I ended up with this. ?{Skill | Disarm , #Disarm | False Body , #False-Body | } Now it comes out as this it fixes the cutting off i had previously but now i no longer get the option to pick ?{Skill | Disarm , Disarm - Target a trap, lock, or contraption. You either disarm the trap, open the lock, or shut down the contraption. If skill fails, trap is activated, lock is broken, or contraption remains functional. Rolling 1d100+5 = (<span class="basicdiceroll">90</span>)+5">95 | False Body , False Body The Illusionist gains concealment, and leaves a false body of themselves behind to trick the enemy. Rolling 1d100+15 = (<span class="basicdiceroll">93</span>)+15">108 | } The dice rolls sum to be 95 for disarm and 108 for false body. Do i need to do
The problem characters where in your Disarm and False-Body Macros, not the Skill Query. Try this ?{Skill | Disarm , #Disarm | False Body , #False-Body} Disarm Disarm - Target a trap, lock, or contraption. You either disarm the trap, open the lock, or shut down the contraption. If skill fails, trap is activated, lock is broken, or contraption remains functional.  [[1d100+5]] False-Body False Body The Illusionist gains concealment, and leaves a false body of themselves behind to trick the enemy. [[1d100+15]] P.S. In order to get these characters to appear in the forum, you need to further encode the Ampersand (&) with &. So to show , I put in ,
yes that fixes my problems. Thank you so much for the help, sorry for the trouble.
Dont worry, queries cause this problem for pretty much everybody at some point.  I try to avoid using them whenever possible in favour of a chat button menu, simply because character substitutions do my head in.