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

Problem with nested macro for Mouse Guard game

Hello. I tried to create a universal macro with many nested universal macros, but it keeps breaking. I tried to replace "| , }" characters in the nested macros, but it keeps breaking. I spend 2 days on it, rewriting it from scratch, but with no success and I am loosing myself. I would really appreciate the help. Here is the full macro. &amp;{template:default}?{Conflict type? |Argument, ?{Action type?&amp;#124;Attack&amp;#44; {{name=[atk](<a href="https://i.imgur.com/HCcuiRV.png)&amp;#125;&amp;#125;{{Attack=[[@{selected|persuader_rating}d6&gt;4]]+[[?{Tapping" rel="nofollow">https://i.imgur.com/HCcuiRV.png)&amp;#125;&amp;#125;{{Attack=[[@{selected|persuader_rating}d6&gt;4]]+[[?{Tapping</a> nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Defend&amp;#44; {{name=[def](<a href="https://i.imgur.com/93cnwmf.png)&amp;#125;&amp;#125;{{Defend=[[@{selected|persuader_rating}d6&gt;4]]+[[?{Tapping" rel="nofollow">https://i.imgur.com/93cnwmf.png)&amp;#125;&amp;#125;{{Defend=[[@{selected|persuader_rating}d6&gt;4]]+[[?{Tapping</a> nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Feint&amp;#44; {{name=[fnt](<a href="https://i.imgur.com/oc0Ps0y.png)&amp;#125;&amp;#125;{{Feint=[[@{selected|deceiver_rating}d6&gt;4]]+[[?{Tapping" rel="nofollow">https://i.imgur.com/oc0Ps0y.png)&amp;#125;&amp;#125;{{Feint=[[@{selected|deceiver_rating}d6&gt;4]]+[[?{Tapping</a> nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Maneuver&amp;#44; {{name=[mnv](<a href="https://i.imgur.com/7vzEnlg.png)&amp;#125;&amp;#125;{{Maneuver=[[@{selected|deceiver_rating}d6&gt;4]]+[[?{Tapping" rel="nofollow">https://i.imgur.com/7vzEnlg.png)&amp;#125;&amp;#125;{{Maneuver=[[@{selected|deceiver_rating}d6&gt;4]]+[[?{Tapping</a> nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124&amp;#125;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125;&amp;#125; |Chase, ?{Action type?&amp;#124;Attack&amp;#44; {{name=[atk](<a href="https://i.imgur.com/HCcuiRV.png)&amp;#125;&amp;#125;{{Attack=[[@{selected|scout_rating}d6&gt;4]]+[[?{Tapping" rel="nofollow">https://i.imgur.com/HCcuiRV.png)&amp;#125;&amp;#125;{{Attack=[[@{selected|scout_rating}d6&gt;4]]+[[?{Tapping</a> nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Defend&amp;#44; {{name=[def](<a href="https://i.imgur.com/93cnwmf.png)&amp;#125;&amp;#125;{{Defend=[[@{selected|pathfinder_rating}d6&gt;4]]+[[?{Tapping" rel="nofollow">https://i.imgur.com/93cnwmf.png)&amp;#125;&amp;#125;{{Defend=[[@{selected|pathfinder_rating}d6&gt;4]]+[[?{Tapping</a> nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Feint&amp;#44; {{name=[fnt](<a href="https://i.imgur.com/oc0Ps0y.png)&amp;#125;&amp;#125;{{Feint=[[@{selected|pathfinder_rating}d6&gt;4]]+[[?{Tapping" rel="nofollow">https://i.imgur.com/oc0Ps0y.png)&amp;#125;&amp;#125;{{Feint=[[@{selected|pathfinder_rating}d6&gt;4]]+[[?{Tapping</a> nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Maneuver&amp;#44; {{name=[mnv](<a href="https://i.imgur.com/7vzEnlg.png)&amp;#125;&amp;#125;{{Maneuver=[[@{selected|scout_rating}d6&gt;4]]+[[?{Tapping" rel="nofollow">https://i.imgur.com/7vzEnlg.png)&amp;#125;&amp;#125;{{Maneuver=[[@{selected|scout_rating}d6&gt;4]]+[[?{Tapping</a> nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124&amp;#125;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125;&amp;#125; |Fight, ?{Action type?&amp;#124;Attack&amp;#44 ; {{name=[atk](<a href="https://i.imgur.com/HCcuiRV.png)&amp;#125;&amp;#125;{{Attack=[[@{selected|fighter_rating}d6&gt;4]]+[[?{Tapping" rel="nofollow">https://i.imgur.com/HCcuiRV.png)&amp;#125;&amp;#125;{{Attack=[[@{selected|fighter_rating}d6&gt;4]]+[[?{Tapping</a> nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Defend&amp;#44; {{name=[def](<a href="https://i.imgur.com/93cnwmf.png)&amp;#125;&amp;#125;{{Defend=[[@{selected|nature_rating}d6&gt;4]]+[[?{Tapping" rel="nofollow">https://i.imgur.com/93cnwmf.png)&amp;#125;&amp;#125;{{Defend=[[@{selected|nature_rating}d6&gt;4]]+[[?{Tapping</a> nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Feint&amp;#44; {{name=[fnt](<a href="https://i.imgur.com/oc0Ps0y.png)&amp;#125;&amp;#125;{{Feint=[[@{selected|fighter_rating}d6&gt;4]]+[[?{Tapping" rel="nofollow">https://i.imgur.com/oc0Ps0y.png)&amp;#125;&amp;#125;{{Feint=[[@{selected|fighter_rating}d6&gt;4]]+[[?{Tapping</a> nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Maneuver&amp;#44; {{name=[mnv](<a href="https://i.imgur.com/7vzEnlg.png)&amp;#125;&amp;#125;{{Maneuver=[[@{selected|nature_rating}d6&gt;4]]+[[?{Tapping" rel="nofollow">https://i.imgur.com/7vzEnlg.png)&amp;#125;&amp;#125;{{Maneuver=[[@{selected|nature_rating}d6&gt;4]]+[[?{Tapping</a> nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124&amp;#125;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125;&amp;#125; |Fight Animal, ?{Action type?&amp;#124;Attack&amp;#44; {{name=[atk](<a href="https://i.imgur.com/HCcuiRV.png)&amp;#125;&amp;#125;{{Attack=[[?{Fighter" rel="nofollow">https://i.imgur.com/HCcuiRV.png)&amp;#125;&amp;#125;{{Attack=[[?{Fighter</a> or hunter?&amp;#124;fighter&amp;#44;@{selected|fighter_rating}&amp;#124;hunter&amp;#44;@{selected|hunter_rating}&amp;#125;d6&gt;4]]+[[?{Tapping nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Defend&amp;#44; {{name=[def](<a href="https://i.imgur.com/93cnwmf.png)&amp;#125;&amp;#125;{{Defend=[[?{Lore" rel="nofollow">https://i.imgur.com/93cnwmf.png)&amp;#125;&amp;#125;{{Defend=[[?{Lore</a> or nature?&amp;#124;lore&amp;#44;?{Lore mouse rank|0}&amp;#124;nature&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{Tapping nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Feint&amp;#44; {{name=[fnt](<a href="https://i.imgur.com/oc0Ps0y.png)&amp;#125;&amp;#125;{{Feint=[[?{Fighter" rel="nofollow">https://i.imgur.com/oc0Ps0y.png)&amp;#125;&amp;#125;{{Feint=[[?{Fighter</a> or hunter?&amp;#124;fighter&amp;#44;@{selected|fighter_rating}&amp;#124;hunter&amp;#44;@{selected|hunter_rating}&amp;#125;d6&gt;4]]+[[?{Tapping nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Maneuver&amp;#44; {{name=[mnv](<a href="https://i.imgur.com/7vzEnlg.png)&amp;#125;&amp;#125;{{Maneuver=[[?{Lore" rel="nofollow">https://i.imgur.com/7vzEnlg.png)&amp;#125;&amp;#125;{{Maneuver=[[?{Lore</a> or nature?&amp;#124;lore&amp;#44;?{Lore mouse rank|0}&amp;#124;nature&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{Tapping nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124&amp;#125;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125;&amp;#125; |Negotiation, ?{Action type?&amp;#124;Attack&amp;#44; {{name=[atk](<a href="https://i.imgur.com/HCcuiRV.png)&amp;#125;&amp;#125;{{Attack=[[?{Haggler&amp;#124;0&amp;#125;d6&gt;4]]+[[?{Tapping" rel="nofollow">https://i.imgur.com/HCcuiRV.png)&amp;#125;&amp;#125;{{Attack=[[?{Haggler&amp;#124;0&amp;#125;d6&gt;4]]+[[?{Tapping</a> nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Defend&amp;#44; {{name=[def](<a href="https://i.imgur.com/93cnwmf.png)&amp;#125;&amp;#125;{{Defend=[[?{Haggler&amp;#124;0&amp;#125;d6&gt;4]]+[[?{Tapping" rel="nofollow">https://i.imgur.com/93cnwmf.png)&amp;#125;&amp;#125;{{Defend=[[?{Haggler&amp;#124;0&amp;#125;d6&gt;4]]+[[?{Tapping</a> nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Feint&amp;#44; {{name=[fnt](<a href="https://i.imgur.com/oc0Ps0y.png)&amp;#125;&amp;#125;{{Feint=[[@{selected|deceiver_rating}d6&gt;4]]+[[?{Tapping" rel="nofollow">https://i.imgur.com/oc0Ps0y.png)&amp;#125;&amp;#125;{{Feint=[[@{selected|deceiver_rating}d6&gt;4]]+[[?{Tapping</a> nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Maneuver&amp;#44; {{name=[mnv](<a href="https://i.imgur.com/7vzEnlg.png)&amp;#125;&amp;#125;{{Maneuver=[[@{selected|deceiver_rating}d6&gt;4]]+[[?{Tapping" rel="nofollow">https://i.imgur.com/7vzEnlg.png)&amp;#125;&amp;#125;{{Maneuver=[[@{selected|deceiver_rating}d6&gt;4]]+[[?{Tapping</a> nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124&amp;#125;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125;&amp;#125; |Journey, ?{Action type?&amp;#124;Attack&amp;#44; {{name=[atk](<a href="https://i.imgur.com/HCcuiRV.png)&amp;#125;&amp;#125;{{Attack=[[@{selected|pathfinder_rating}d6&gt;4]]+[[?{Tapping" rel="nofollow">https://i.imgur.com/HCcuiRV.png)&amp;#125;&amp;#125;{{Attack=[[@{selected|pathfinder_rating}d6&gt;4]]+[[?{Tapping</a> nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Defend&amp;#44; {{name=[def](<a href="https://i.imgur.com/93cnwmf.png)&amp;#125;&amp;#125;{{Defend=[[@{selected|persuader_rating}d6&gt;4]]+[[?{Tapping" rel="nofollow">https://i.imgur.com/93cnwmf.png)&amp;#125;&amp;#125;{{Defend=[[@{selected|persuader_rating}d6&gt;4]]+[[?{Tapping</a> nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Feint&amp;#44 ; {{name=[fnt](<a href="https://i.imgur.com/oc0Ps0y.png)&amp;#125;&amp;#125;{{Feint=[[?{Survivalist" rel="nofollow">https://i.imgur.com/oc0Ps0y.png)&amp;#125;&amp;#125;{{Feint=[[?{Survivalist</a> or Weather Watcher?&amp;#124;survivalist&amp;#44;@{selected|survivalist_rating}&amp;#124;Weather Watcher&amp;#44;@{selected|weather_watcher_rating}&amp;#125;d6&gt;4]]+[[?{Tapping nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Maneuver&amp;#44; {{name=[mnv](<a href="https://i.imgur.com/7vzEnlg.png)&amp;#125;&amp;#125;{{Maneuver=[[?{Survivalist" rel="nofollow">https://i.imgur.com/7vzEnlg.png)&amp;#125;&amp;#125;{{Maneuver=[[?{Survivalist</a> or Weather Watcher?&amp;#124;survivalist&amp;#44;@{selected|survivalist_rating}&amp;#124;Weather Watcher&amp;#44;@{selected|weather_watcher_rating}&amp;#125;d6&gt;4]]+[[?{Tapping nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124&amp;#125;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125;&amp;#125; |Speech, ?{Action type?&amp;#124;Attack&amp;#44; {{name=[atk](<a href="https://i.imgur.com/HCcuiRV.png)&amp;#125;&amp;#125;{{Attack=[[@{selected|orator_rating}d6&gt;4]]+[[?{Tapping" rel="nofollow">https://i.imgur.com/HCcuiRV.png)&amp;#125;&amp;#125;{{Attack=[[@{selected|orator_rating}d6&gt;4]]+[[?{Tapping</a> nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Defend&amp;#44; {{name=[def](<a href="https://i.imgur.com/93cnwmf.png)&amp;#125;&amp;#125;{{Defend=[[@{selected|orator_rating}d6&gt;4]]+[[?{Tapping" rel="nofollow">https://i.imgur.com/93cnwmf.png)&amp;#125;&amp;#125;{{Defend=[[@{selected|orator_rating}d6&gt;4]]+[[?{Tapping</a> nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Feint&amp;#44; {{name=[fnt](<a href="https://i.imgur.com/oc0Ps0y.png)&amp;#125;&amp;#125;{{Feint=[[?{Orator" rel="nofollow">https://i.imgur.com/oc0Ps0y.png)&amp;#125;&amp;#125;{{Feint=[[?{Orator</a> or Deceiver?&amp;#124;Orator&amp;#44;@{selected|orator_rating}&amp;#124;Deceiver&amp;#44;@{selected|deceiver_rating}&amp;#125;d6&gt;4]]+[[?{Tapping nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Maneuver&amp;#44; {{name=[mnv](<a href="https://i.imgur.com/7vzEnlg.png)&amp;#125;&amp;#125;{{Maneuver=[[?{Orator" rel="nofollow">https://i.imgur.com/7vzEnlg.png)&amp;#125;&amp;#125;{{Maneuver=[[?{Orator</a> or Deceiver?&amp;#124;Orator&amp;#44;@{selected|orator_rating}&amp;#124;Deceiver&amp;#44;@{selected|deceiver_rating}&amp;#125;d6&gt;4]]+[[?{Tapping nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124&amp;#125;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125;&amp;#125; |War, ?{Action type?&amp;#124;Attack&amp;#44; {{name=[atk](<a href="https://i.imgur.com/HCcuiRV.png)&amp;#125;&amp;#125;{{Attack=[[@{selected|persuader_rating}d6&gt;4]]+[[?{Tapping" rel="nofollow">https://i.imgur.com/HCcuiRV.png)&amp;#125;&amp;#125;{{Attack=[[@{selected|persuader_rating}d6&gt;4]]+[[?{Tapping</a> nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Defend&amp;#44; {{name=[def](<a href="https://i.imgur.com/93cnwmf.png)&amp;#125;&amp;#125;{{Defend=[[@{selected|persuader_rating}d6&gt;4]]+[[?{Tapping" rel="nofollow">https://i.imgur.com/93cnwmf.png)&amp;#125;&amp;#125;{{Defend=[[@{selected|persuader_rating}d6&gt;4]]+[[?{Tapping</a> nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Feint&amp;#44; {{name=[fnt](<a href="https://i.imgur.com/oc0Ps0y.png)&amp;#125;&amp;#125;{{Feint=[[@{selected|fighter_rating}d6&gt;4]]+[[?{Tapping" rel="nofollow">https://i.imgur.com/oc0Ps0y.png)&amp;#125;&amp;#125;{{Feint=[[@{selected|fighter_rating}d6&gt;4]]+[[?{Tapping</a> nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Maneuver&amp;#44; {{name=[mnv](<a href="https://i.imgur.com/7vzEnlg.png)&amp;#125;&amp;#125;{{Maneuver=[[?{Fighter" rel="nofollow">https://i.imgur.com/7vzEnlg.png)&amp;#125;&amp;#125;{{Maneuver=[[?{Fighter</a> or hunter?&amp;#124;fighter&amp;#44;@{selected|fighter_rating}&amp;#124;hunter&amp;#44;@{selected|hunter_rating}&amp;#125;d6&gt;4]]+[[?{Tapping nature&amp;#124;No&amp;#44;0&amp;#124;Yes&amp;#44;@{selected|nature_rating}&amp;#125;d6&gt;4]]+[[?{bonus&amp;#124&amp;#125;0&amp;#125;d6&gt;4]]&amp;#125;&amp;#125;&amp;#125;} }
1584264824
Pantoufle
Pro
Sheet Author
Translator
Hello, Have you considered using chat menus instead ? ( <a href="https://app.roll20.net/forum/post/5899495/stupid-roll20-tricks-and-some-clever-ones/?pageforid=5927072#post-5927072" rel="nofollow">https://app.roll20.net/forum/post/5899495/stupid-roll20-tricks-and-some-clever-ones/?pageforid=5927072#post-5927072</a> ) HTML replacement is very tricky and everytime you reopen, you have to do it again... Good luck :) Pantoufle
1584269449
Ziechael
Forum Champion
Sheet Author
API Scripter
At a glance, and because that is too much for me to handle on a Sunday, I'd say your problems comes from n th level nesting. Your html replacements look to be correct for the first level of nesting but any query breaking elements within that next level would also need escaping. Again, at a glance, it seems to be primarily your ?{bonus and ?{Tapping Nature queries that require additional nesting. Replacing those with the following respectively should get you somewhat closer to your goal: ?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{selected|nature_rating}&amp;amp;#125; ?{bonus&amp;amp;#124;0&amp; amp;#125; This section of the wiki should give you the full details.
Thank you Ziechael I completely missed it.
1584284456
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
There is also this nesting tool by Scott C. that may be of some help:&nbsp; Drop Down Nester
I remade the macro from scratch once again, using "&amp;amp;" this time. Now the first drop bar is working as intended, but unfortunately the next dropbar is crashing. &amp;{template:default}?{Conflict type |Argument,?{Action type&amp;#124;Attack&amp;#44;{{name=Attack&amp;#125;&amp;#125;{{[[@{persuader_rating}d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Defend&amp;#44;{{name=Defend&amp;#125;&amp;#125;{{[[@{persuader_rating}d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Feint&amp;#44;{{name=Feint&amp;#125;&amp;#125;{{[[@{deceiver_rating}d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Maneuver&amp;#44;{{name=Maneuver&amp;#125;&amp;#125;{{[[@{deceiver_rating}d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#125; |Chase,?{Action type&amp;#124;Attack &amp;#44;{{name=Attack&amp;#125;&amp;#125;{{[[@{scout_rating}d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Defend&amp;#44;{{name=Defend&amp;#125;&amp;#125;{{[[@{pathfinder_rating}d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Feint&amp;#44;{{name=Feint&amp;#125;&amp;#125;{{[[@{pathfinder_rating}d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Maneuver&amp;#44;{{name=Maneuver&amp;#125;&amp;#125;{{[[@{scout_rating}d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#125; |Fight,?{Action type&amp;#124;Attack&amp;#44;{{name=Attack&amp;#125;&amp;#125;{{[[@{fighter_rating}d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Defend&amp;#44;{{name=Defend&amp;#125;&amp;#125;{{[[@{nature_rating}d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Feint&amp;#44;{{name=Feint&amp;#125;&amp;#125;{{[[@{fighter_rating}d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Maneuver&amp;#44;{{name=Maneuver&amp;#125;&amp;#125;{{[[@{nature_rating}d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#125; |Fight Animal,?{Action type&amp;#124;Attack&amp;#44;{{name=Attack&amp;#125;&amp;#125;{{[[?{Fighter or Hunter?&amp;amp;#124;Fighter&amp;amp;#44; @{fighter_rating}&amp;amp;#124;Hunter&amp;amp;#44; @{hunter_rating}&amp;amp;#125;d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Defend&amp;#44;{{name=Defend&amp;#125;&amp;#125;{{[[?{Nature or Loremouse?&amp;amp;#124;Nature&amp;amp;#44; @{nature_rating}&amp;amp;#124;Loremouse&amp;amp;#44; ?{Loremouse rating&amp;amp;#124;0&amp;amp;#125;&amp;amp;#125;d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Feint &amp;#44;{{name=Feint&amp;#125;&amp;#125;{{[[?{Fighter or Hunter?&amp;amp;#124;Fighter&amp;amp;#44; @{fighter_rating}&amp;amp;#124;Hunter&amp;amp;#44; @{hunter_rating}&amp;amp;#125;d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Maneuver &amp;#44;{{name=Maneuver&amp;#125;&amp;#125;{{[[?{Nature or Loremouse?&amp;amp;#124;Nature&amp;amp;#44; @{nature_rating}&amp;amp;#124;Loremouse&amp;amp;#44; ?{Loremouse rating&amp;amp;#124;0&amp;amp;#125;&amp;amp;#125;d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#125; |Journey,?{Action type&amp;#124;Attack&amp;#44;{{name=Attack&amp;#125;&amp;#125;{{[[@{pathfinder_rating}d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Defend &amp;#44;{{name=Defend&amp;#125;&amp;#125;{{[[?{Survivalist or Weather watcher?&amp;amp;#124;Survivalist&amp;amp;#44; @{survivalist_rating}&amp;amp;#124;Weather Watcher&amp;amp;#44; @{weather_watcher_rating}&amp;amp;#125;d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Feint &amp;#44;{{name=Feint&amp;#125;&amp;#125;{{[[@{pathfinder_rating}d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Maneuver &amp;#44;{{name=Maneuver&amp;#125;&amp;#125;{{[[?{Survivalist or Weather watcher?&amp;amp;#124;Survivalist&amp;amp;#44; @{survivalist_rating}&amp;amp;#124;Weather Watcher&amp;amp;#44; @{weather_watcher_rating}&amp;amp;#125;d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#125; |Negotiation,?{Action type&amp;#124;Attack&amp;#44;{{name=Attack&amp;#125;&amp;#125;{{[[?{Haggler&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Defend &amp;#44;{{name=Defend&amp;#125;&amp;#125;{{[[?{Haggler&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Feint &amp;#44;{{name=Feint&amp;#125;&amp;#125;{{[[?{Deceiver or Persuader?&amp;amp;#124;Deceiver&amp;amp;#44; @{deceiver_rating}&amp;amp;#124;Persuader&amp;amp;#44; @{persuader_rating}&amp;amp;#125;d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Maneuver &amp;#44;{{name=Maneuver&amp;#125;&amp;#125;{{[[?{Deceiver or Persuader?&amp;amp;#124;Deceiver&amp;amp;#44; @{deceiver_rating}&amp;amp;#124;Persuader&amp;amp;#44; @{persuader_rating}&amp;amp;#125;d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#125; |Speech,?{Action type&amp;#124;Attack&amp;#44;{{name=Attack&amp;#125;&amp;#125;{{[[@{orator_rating}d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Defend &amp;#44;{{name=Defend&amp;#125;&amp;#125;{{[[@{orator_rating}d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Feint &amp;#44;{{name=Feint&amp;#125;&amp;#125;{{[[@{deceiver_rating}d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Maneuver &amp;#44;{{name=Maneuver&amp;#125;&amp;#125;{{[[@{deceiver_rating}d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#125; |War,?{Action type&amp;#124;Attack&amp;#44;{{name=Attack&amp;#125;&amp;#125;{{[[?{Militarist rating&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Defend&amp;#44;{{name=Defend&amp;#125;&amp;#125;{{[[@{orator_rating}d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Feint&amp;#44;{{name=Feint&amp;#125;&amp;#125;{{[[?{Administrator rating&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#124;Maneuver&amp;#44;{{name=Maneuver&amp;#125;&amp;#125;{{[[?{Militarist rating&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] +[[?{Tapping nature&amp;amp;#124;No&amp;amp;#44;0&amp;amp;#124;Yes&amp;amp;#44;@{nature_rating}&amp;amp;#125;d6&gt;4]]&amp;#125;&amp;#125; &amp;#125; }
1584609854
Ziechael
Forum Champion
Sheet Author
API Scripter
When the broken bit pops up, click into the query box and ctrl+a, ctrl+c to grab all of the resulting mess, pop that into a text document or some such and it will show you where the break is occurring, usually these things boil down to a single unescaped character or wrong level of escaping.
Double checked it, and everything looks fine.
I think I have finally found the problem, but I don't know hot to fix it. I believe it is what Ziechael said about it being n th level nesting. &amp;{template:default}?{Conflict type ... &amp;#124;Defend&amp;#44;{{name=Defend&amp;#125;&amp;#125;{{[[?{Nature or Loremouse? &nbsp;&nbsp;&nbsp;&nbsp; &amp;amp;#124;Nature&amp;amp;#44; @{nature_rating} &nbsp;&nbsp;&nbsp;&nbsp; &amp;amp;#124;Loremouse&amp;amp;#44; ?{Loremouse rating &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;amp;#124;0&amp;amp;#125; &amp;amp;#125;d6&gt;4]] +[[?{Trait/wise/other bonus&amp;amp;#124;0&amp;amp;#125;d6&gt;4]] ... &amp;#125; } If 2nd level nesting replaces "}" with "&amp;#125;", 3rd level nesting replaces it with "&amp;amp;#125;", then with what should I replece it for 4th level nesting?
1584635382
Ziechael
Forum Champion
Sheet Author
API Scripter
&amp;amp;amp;#125; And so on :)