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

Nested Macros help

I'm trying to create an ability macro where I can call every skill check. I thought of something like this, but it does not work. ?{Which sklill? |Heal, @{healmacro}|Climb,@{climbmacro}} Does anyone have a better idea?
1499767755
Ziechael
Forum Champion
Sheet Author
API Scripter
Can I safely assume that you are using the 3.5e character sheet by Diana? If so then your macro would work but you'd need to go to the skills tab and replace the parts of the macro being called with their html replacements as detailed in the&nbsp; wiki here . This is because the attribute @{&lt;skill&gt;macro} is being resolved before the chat output and the characters '|', ',' and '}' are breaking the query. Example: /w gm &{template:DnD35StdRoll} {{skillflag=true}} {{name=@{character_name} }} {{check=[Appraise](<a href="http://www.dandwiki.com/wiki/SRD:Appraise_Skill" rel="nofollow">http://www.dandwiki.com/wiki/SRD:Appraise_Skill</a> ) check:}} {{checkroll=[[1d20 + [[@{appraise}]] ]] {{notes=@{appraisenote} }} Becomes: /w gm &{template:DnD35StdRoll&amp;#125; {{skillflag=true&amp;#125;&amp;#125; {{name=@{character_name} &amp;#125;&amp;#125; {{check=[Appraise](<a href="http://www.dandwiki.com/wiki/SRD:Appraise_Skill" rel="nofollow">http://www.dandwiki.com/wiki/SRD:Appraise_Skill</a> ) check:&amp;#125;&amp;#125; {{checkroll=[[1d20 + [[@{appraise}]] ]] {{notes=@{appraisenote} &amp;#125;&amp;#125;
1499769016
Ziechael
Forum Champion
Sheet Author
API Scripter
However, note that if you change the macros on the sheet to involve the replacements you won't be able to call it direct from the sheet anymore. An alternative is to use API buttons to output a nice little button to chat that players can then click to call the macro without the need to use the replacements: ?{Which sklill? |Heal, [Roll](!&amp;#13;&amp;#64;{selected|healmacro}) |Climb, [Roll](!&amp;#13;&amp;#64;{selected|climbmacro}) |etc etc}
Thank you very much. I think I'm gonna try both.