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

Trying to use a power card in a nested macro

I am trying to make it so a power card will work in a nested macro.

<!--
&{template:dnd4epower} {{atwill=1}}  {{name=Sunspray Dance }} {{attack=  [[1d20+4+2+?{bonA|0}]]}} {{damage=[[d8+4]]}} {{effect= and the target takes a -2 penalty to attack rolls until the start of your next turn. }} -->
Comment tags don't work either...
&`#38;&`#123;template:dnd4epower} &`#123;&`#123;atwill&`#61;1&`#125;}  &`#123;&`#123;name&`#61;Sunspray Dance &`#125;&`#125; &`#123;&`#123;attack&`#61;  [[1d20+4+2+?{bonA&`#124;0&`#125;]]&`#125;&`#125; &`#123;&`#123;damage&`#61;[[d8+4]]&`#125;&`#125; &`#123;&`#123;effect&`#61; and the target takes a -2 penalty to attack rolls until the start of your next turn. &`#125;&`#125;
June 07 (7 years ago)
Instead of bothering with Advanced Usage for Roll Queries, have you considered trying out a Command Button menu? e.g.
&{template:default} {{name=Attacks}} {{ [Sunspray Dance](~Devlin|SunsprayDance) [Another Attack](~Devlin|SomeAttack) }}
I nest my macros to make it easier to play on moble. The buttons arent usable. And this is just to pretty it up, I already have it able to be put out in functional plain text.
June 07 (7 years ago)

Edited June 07 (7 years ago)

Devlin M. said:

&{template:dnd4epower} {{atwill=1}}  {{name=Sunspray Dance }} {{attack=  [[1d20+4+2+?{bonA|0}]]}} {{damage=[[d8+4]]}} {{effect= and the target takes a -2 penalty to attack rolls until the start of your next turn. }} -->

You'll need to escape all of the } , including the | and the } within the bonA Query.
Can I just escape everything and cut out the middleman?
June 07 (7 years ago)

Edited June 07 (7 years ago)
If you'd like, but be careful not to escape any @{Attribute calls} or %{Ability calls}.
Well no calls in the power card it looks like.
June 07 (7 years ago)
Then, go crazy. Make sure you escape all of the } and don't accidentally leave any
June 08 (7 years ago)

Edited June 08 (7 years ago)
It looks like you can't nest power cards. Unless I did something wrong.
&`#38;&`#123;template:dnd4epower&`#125; &`#123;&`#123;atwill=1&`#125;&`#125;  &`#123;&`#123;name=Ice Pillar &`#125;&`#125; &`#123;&`#123;attack=  [[1d20+4+2+?&`#123;bonA&`#124;0&`#125;]]&`#125;&`#125; &`#123;&`#123;damage=[[1d6+4+?&`#123;tbonD&`#124;0&`#125;]]&`#125;&`#125; &`#123;&`#123;effect= Effect: You conjure a pillar of crackling ice in an unoccupied square within range. The pillar occupies 1 square and lasts until the end of your next turn. Each enemy that moves into a square adjacent to the pillar on its turn takes 1d6 + your Intelligence modifier cold damage. &`#125;&`#125;
June 08 (7 years ago)
What's the macro that you're trying to nest that within?
Well this is the full macro.
?{Powers|SunsprayDance,%{Verbannon|SunsprayDance}|EruptingFlare,%{Verbannon|EruptingFlare}|IcePillar,%{Verbannon|IcePillar}|BathedInLight,%{Verbannon|BathedInLight}|StaffOfDefense,%{Verbannon|StaffOfDefense}|BurningHandsD,%{Verbannon|BurningHandsD}|BurningHandsA,%{Verbannon|BurningHandsA}|FreezingCloudD,%{Verbannon|FreezingCloudD}|FreezingCloudA,%{Verbannon|FreezingCloudA}|DustDevil,%{Verbannon|DustDevil}|ScouringWindD,%{Verbannon|ScouringWindD}|ScouringWindA,%{Verbannon|ScouringWindA}|}

And here is the current un fancified version of ice pillar.

Ice Pillar&`#44; Ranged 10  Effect: You conjure a pillar of crackling ice in an unoccupied square within range. The pillar occupies 1 square and lasts until the end of your next turn. Each enemy that moves into a square adjacent to the pillar on its turn takes [[1d6+4+?{bonD&`#124;0&`#125;]] cold damage.

Guess its not important, just trying to make it look better.
June 08 (7 years ago)

Edited June 08 (7 years ago)
?{Test|A,

&#38;&#123;template:default&#125; &#123;&#123;atwill=1&#125;&#125; &#123;&#123;name=Ice Pillar &#125;&#125; &#123;&#123;attack= [[1d20+4+2+?&#123;bonA&#124;0&#125;]]&#125;&#125; &#123;&#123;damage=[[1d6+4+?&#123;tbonD&#124;0&#125;]]&#125;&#125; &#123;&#123;effect= Effect: You conjure a pillar of crackling ice in an unoccupied square within range. The pillar occupies 1 square and lasts until the end of your next turn. Each enemy that moves into a square adjacent to the pillar on its turn takes 1d6 + your Intelligence modifier cold damage. &#125;&#125; |

}

This works for me; I copied what you posted, removed the backticks, and replaced dnd4epower with default (so I could test it).
Oh, apparently when I escape it for nesting, I actually have to roll it in the nest for it to work. Thanks!