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

I want use template macero in Drop-Down

1608807902

Edited 1608807920
Hello!  I have some problem made macro,  I want use drop-down macro with roll template.  my macro is this> ?{what happen?|happen1,&{template:Ninpo}{{subject=blah}}{{name=blah}}{{Effect=**blah blah**}}|happen2, &{template:Ninpo}{{subject=blah}}{{name=blah}}{{Effect=**blah blah**}}} So I used Html Entitles, and my results is this  ?{what happen?|happen1,&{template:Ninpo } {{subject=blah} } {{name=blah} } {{Effect=**blah blah**} } |happen2, &38;{template:Ninpo } {{subject=blah} } {{name=blah} } {{Effect=**blah blah**} } } But it still doesn't work. {tempalte:Ninpo} is my personal charactor sheet template. How can I get this macro to work?
1608808718

Edited 1608808853
Oosh
Sheet Author
API Scripter
You just need to replace more of the } braces. You can also improve the macro a bit by moving more code outside the Query. You can also use line-breaks inside Queries to make the code easier to read: &{template:Ninpo} {{subject=?{what happen?| happen1,blah}}{{name=blah}}{{Effect=**blah blah**}}| happen2,blah}}{{name=blah}}{{Effect=**blah blah**}}} There's more information here in the wiki. You need to replace all of the } , | characters with HTML, unless they are part of an @{Attribute} or  %{Ability} call.
1608808908

Edited 1608808943
GiGs
Pro
Sheet Author
API Scripter
Every } has to be converted to a html entity. This, for example: {{subject=blah} } should be {{subject=blah } } I'd recommend restructuring your query a bit to include as little as possible inside the query. For example, moving the template start before the query like this: &{template:Ninpo}{{subject=?{what happen?|happen1,blah}}{{name=blah}}{{Effect=**blah blah**|happen2,blah}}{{name=blah}}{{Effect=**blah blah**} }} Notice I also move the last }} to after the query, so you dont need to use html entities for those. So think about how you can restructure the macro, what needs to be inside the query, and what you can get away with outside of it. Anything duplicated in each option is best move outside if you can, either before or after. Edit:  I'm out of practice. Ninja'd!
I did it with yours advice! Thank you for kindness answer. happy hoilday! 
1608858493
GiGs
Pro
Sheet Author
API Scripter
Well done, and Happy Holidays :)