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

Quarry question/issue.

I started creating a macro to choose from two types of actions in a pathfinder campaign I am playing. But encountered a problem with the design. While testing different kinds of design and nestling some thing, i found&nbsp;one that worked until i changed some minor things. First part of the nestled ability macro is this &nbsp;&{template:pf_spell} ?{Action|Standard,%{Orion|WarStandard} |Full,%{Orion|FullWar}} which works kinda. What happen is that it uses the template for spell as all can see, but it goes wrong when it jumps into the quarry. First of was my belief that it wouldn't execute the second statement in the quarry but it does to my surprise. Is there a way not to execute the second part of the quarry? For more code check this paste bin to see the rest of the code. Pastebin:&nbsp; <a href="http://pastebin.com/h0KT25Y1" rel="nofollow">http://pastebin.com/h0KT25Y1</a> Also here is a picture to show what happens &nbsp; Bottom part after "Weapon" shouldn't be there is I chose the standard attack. And top part is shouldn't be there if I choose. How it should look, excetuting the macros/abilities separate. Is there a way to fix this or should i just stick with the boring do different macro buttons?
1456014987
Silvyre
Forum Champion
Hi, Nygaard . The two following sections of the Roll20 Wiki explain the issues you're experiencing with Roll Queries : <a href="https://wiki.roll20.net/Macros#Troubleshooting" rel="nofollow">https://wiki.roll20.net/Macros#Troubleshooting</a> <a href="https://wiki.roll20.net/Macros#Advanced_Usage_for_" rel="nofollow">https://wiki.roll20.net/Macros#Advanced_Usage_for_</a>... Please read those, and let me know what you find confusing.
Currently totatly confused, but that could be because of lack of sleep since it is 02:40 in the morning.&nbsp;
So instead of fixing the issue I had. I reworked the macro, to a similar version of the bugged one, and keeping most or the quarries at the top layer of the new macro(only binary quarries). Now the new code works fine, and i still don't get how to use the advanced part of the macro page. New code link(Pastebin is my friend):&nbsp; <a href="http://pastebin.com/wW6LFp3G" rel="nofollow">http://pastebin.com/wW6LFp3G</a>
1456082491
Silvyre
Forum Champion
Here's ?{Action|Standard, %{Orion|WarStandard}|Full, %{Orion|FullWar}|Full (Haste), [...]} with a few other of my own (cosmetic) modifications: &amp;{template:pf_spell} ?{Action| Standard, {{name=Standard Attack (Hit **&amp;#124;** Dmg)&amp;#125;&amp;#125; {{**Attack**=[[ 1d20 + (@{WarhammerHit} + ?{Bonus?&amp;#124;0&amp;#125; ]] (![[ 1d20 + (@{WarhammerHit} + @{CritBon} - 2 + ?{Bonus?&amp;#125; + [[?{Iaijutsu?&amp;#124;No&amp;#44; 0&amp;#124;Yes&amp;#44; 1&amp;#125; * floor(@{Level}/2)]] [Iaijutsu] ]]!) **&amp;#124;** [[ 1d8 + (@{WarhammerDMG} + (?{Challenge?&amp;#124;No&amp;#44; 0&amp;#124;Yes&amp;#44; 1&amp;#125; * @{Challange}) [Challenge] + ?{DMGBonus?&amp;#124;0&amp;#125; [Bonus] + (?{Power Attack?&amp;#124;No&amp;#44; 0&amp;#124;Yes&amp;#44; 1&amp;#125; * @{PowerBonus}) [Power Attack Bonus]) ]] + ![[ 2d8 + (@{WarhammerDMG} + (?{Challenge?&amp;#125; * @{Challange}) [Challenge] + ?{DMGBonus?&amp;#125; [Bonus] + (?{Power Attack?&amp;#125; * @{PowerBonus})) * 2 [Power Attack Bonus] ]]!&amp;#125;&amp;#125; {{**Iaijutsu**=[[ ?{Iaijutsu?&amp;#125; * @{IaijutsuDice}d6 ]]&amp;#125;&amp;#125; | Full, {{name=Full Attack (Hit **&amp;#124;** Dmg)&amp;#125;&amp;#125; {{**1st**=[[ 1d20 + (@{WarhammerHit} + ?{Bonus?&amp;#124;0&amp;#125; ]] (![[ 1d20 + (@{WarhammerHit} + @{CritBon} - 2 + ?{Bonus?&amp;#125; ]]!) **&amp;#124;** [[ 1d8 + (@{WarhammerDMG} + (?{Challenge?&amp;#124;No&amp;#44; 0&amp;#124;Yes&amp;#44; 1&amp;#125; * @{Challange}) [Challenge] + ?{DMGBonus?&amp;#124;0&amp;#125; [Bonus] + (?{Power Attack?&amp;#124;No&amp;#44; 0&amp;#124;Yes&amp;#44; 1&amp;#125; * @{PowerBonus}) [Power Attack Bonus]) ]] + ![[ 2d8 + (@{WarhammerDMG} + (?{Challenge?&amp;#125; * @{Challange}) [Challenge] + ?{DMGBonus?&amp;#125; [Bonus] + (?{Power Attack?&amp;#125; * @{PowerBonus})) * 2 [Power Attack Bonus] ]]!&amp;#125;&amp;#125; {{**2nd**=[[ 1d20 + (@{WarhammerHit} + ?{Bonus?&amp;#125;) - ?{Power Attack?&amp;#125; * @{PowerPen} [Power Attack Penalty] - 5 ]] (![[ 1d20 + (@{WarhammerHit} + @{CritBon} - 2 + ?{Bonus?&amp;#125;) - ?{Power Attack?&amp;#125; * @{PowerPen} [Power Attack Penalty] - 5 ]]!) **&amp;#124;** [[ 1d8 + (@{WarhammerDMG} + (?{Challenge?&amp;#125; * @{Challange}) [Challenge] + ?{DMGBonus?&amp;#125; [Bonus] + (?{Power Attack?&amp;#125; * @{PowerBonus}) [Power Attack Bonus]) ]] + ![[ 2d8 + (@{WarhammerDMG} + (?{Challenge?&amp;#125; * @{Challange}) [Challenge] + ?{DMGBonus?&amp;#125; [Bonus] + (?{Power Attack?&amp;#125; * @{PowerBonus})) * 2 [Power Attack Bonus] ]]!&amp;#125;&amp;#125; {{**3rd**=[[ 1d20 + (@{WarhammerHit} + ?{Bonus?&amp;#125;) - ?{Power Attack?&amp;#125; * @{PowerPen} [Power Attack Penalty] - 10 ]] (![[ 1d20 + (@{WarhammerHit} + @{CritBon} - 2 + ?{Bonus?&amp;#125;) - ?{Power Attack?&amp;#125; * @{PowerPen} [Power Attack Penalty] - 10 ]]!) **&amp;#124;** [[ 1d8 + (@{WarhammerDMG} + (?{Challenge?&amp;#125; * @{Challange}) [Challenge] + ?{DMGBonus?&amp;#125; [Bonus] + (?{Power Attack?&amp;#125; * @{PowerBonus}) [Power Attack Bonus]) ]] + ![[ 2d8 + (@{WarhammerDMG} + (?{Challenge?&amp;#125; * @{Challange}) [Challenge] + ?{DMGBonus?&amp;#125; [Bonus] + (?{Power Attack?&amp;#125; * @{PowerBonus})) * 2 [Power Attack Bonus] ]]!&amp;#125;&amp;#125; | Full (Haste), {{name=Full Attack + Haste (Hit **&amp;#124;** Dmg)&amp;#125;&amp;#125; {{**1st**=[[ 1d20 + (@{WarhammerHit} + ?{Bonus?&amp;#124;0&amp;#125; ]] (![[ 1d20 + (@{WarhammerHit} + @{CritBon} - 2 + ?{Bonus?&amp;#125; ]]!) **&amp;#124;** [[ 1d8 + (@{WarhammerDMG} + (?{Challenge?&amp;#124;No&amp;#44; 0&amp;#124;Yes&amp;#44; 1&amp;#125; * @{Challange}) [Challenge] + ?{DMGBonus?&amp;#124;0&amp;#125; [Bonus] + (?{Power Attack?&amp;#124;No&amp;#44; 0&amp;#124;Yes&amp;#44; 1&amp;#125; * @{PowerBonus}) [Power Attack Bonus]) ]] + ![[ 2d8 + (@{WarhammerDMG} + (?{Challenge?&amp;#125; * @{Challange}) [Challenge] + ?{DMGBonus?&amp;#125; [Bonus] + (?{Power Attack?&amp;#125; * @{PowerBonus})) * 2 [Power Attack Bonus] ]]!&amp;#125;&amp;#125; {{**2nd**=[[ 1d20 + (@{WarhammerHit} + ?{Bonus?&amp;#125;) - ?{Power Attack?&amp;#125; * @{PowerPen} [Power Attack Penalty] - 5 ]] (![[ 1d20 + (@{WarhammerHit} + @{CritBon} - 2 + ?{Bonus?&amp;#125;) - ?{Power Attack?&amp;#125; * @{PowerPen} [Power Attack Penalty] - 5 ]]!) **&amp;#124;** [[ 1d8 + (@{WarhammerDMG} + (?{Challenge?&amp;#125; * @{Challange}) [Challenge] + ?{DMGBonus?&amp;#125; [Bonus] + (?{Power Attack?&amp;#125; * @{PowerBonus}) [Power Attack Bonus]) ]] + ![[ 2d8 + (@{WarhammerDMG} + (?{Challenge?&amp;#125; * @{Challange}) [Challenge] + ?{DMGBonus?&amp;#125; [Bonus] + (?{Power Attack?&amp;#125; * @{PowerBonus})) * 2 [Power Attack Bonus] ]]!&amp;#125;&amp;#125; {{**3rd**=[[ 1d20 + (@{WarhammerHit} + ?{Bonus?&amp;#125;) - ?{Power Attack?&amp;#125; * @{PowerPen} [Power Attack Penalty] - 10 ]] (![[ 1d20 + (@{WarhammerHit} + @{CritBon} - 2 + ?{Bonus?&amp;#125;) - ?{Power Attack?&amp;#125; * @{PowerPen} [Power Attack Penalty] - 10 ]]!) **&amp;#124;** [[ 1d8 + (@{WarhammerDMG} + (?{Challenge?&amp;#125; * @{Challange}) [Challenge] + ?{DMGBonus?&amp;#125; [Bonus] + (?{Power Attack?&amp;#125; * @{PowerBonus}) [Power Attack Bonus]) ]] + ![[ 2d8 + (@{WarhammerDMG} + (?{Challenge?&amp;#125; * @{Challange}) [Challenge] + ?{DMGBonus?&amp;#125; [Bonus] + (?{Power Attack?&amp;#125; * @{PowerBonus})) * 2 [Power Attack Bonus] ]]!&amp;#125;&amp;#125; {{**4th**=[[ (1d20 + (@{WarhammerHit} + ?{Bonus?&amp;#125;) - ?{Power Attack?&amp;#125; * @{PowerPen} [Power Attack Penalty]) [Haste Attack] ]] (![[ (1d20 + (@{WarhammerHit} + @{CritBon} - 2 + ?{Bonus?&amp;#125;) - ?{Power Attack?&amp;#125; * @{PowerPen} [Power Attack Penalty]) [Haste Attack] ]]!) **&amp;#124;** [[ (1d8 + (@{WarhammerDMG} + (?{Challenge?&amp;#125; * @{Challange}) [Challenge] + ?{DMGBonus?&amp;#125; [Bonus] + (?{Power Attack?&amp;#125; * @{PowerBonus}) [Power Attack Bonus])) [Haste Attack] ]] + ![[ (2d8 + (@{WarhammerDMG} + (?{Challenge?&amp;#125; * @{Challange}) [Challenge] + ?{DMGBonus?&amp;#125; [Bonus] + (?{Power Attack?&amp;#125; * @{PowerBonus})) * 2 [Power Attack Bonus]) [Haste Attack] ]]!&amp;#125;&amp;#125; } {{**Note**=@{Note}}} {{**Weapon**=Warhammer (Blunt)}} (Not heavily tested; let me know if something seems broken.) As recommended by Advanced Usage for Roll Queries ; I replaced every Ability&nbsp; call with its value (due to each value containing "problematic characters") e.g. I replaced %{Orion|WarAttack} with [[ 1d20 + (@{WarhammerHit} + ?{Bonus?|0}) ]] Then, I replaced each of those problematic characters with HTML entities. e.g. I replaced [[ 1d20 + (@{WarhammerHit} + ?{Bonus?|0}) ]] with [[ 1d20 + (@{WarhammerHit} + ?{Bonus?&amp;#124;0&amp;#125;) ]] Then, I replaced the other problematic characters within the ?{Action} Query. e.g. I replaced {{name=Full Attack (Hit **|** Dmg)}} with {{name=Full Attack (Hit **&amp;#124;** Dmg)&amp;#125;&amp;#125; Please let me know if this helped you understand Advanced Roll Queries. :)
Thanks for clarifying how and when to use the&nbsp;advanced stuff for roll queries. I does help, also thanks for test macro with them. But I'm not going to dig to deep in the macro anymore since the one I have created now works fine and can be expanded to my needs.
1456174085
Silvyre
Forum Champion
You're welcome; happy rolling!