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

D&D 5e by Roll20

I am attempting to nest a roll macro inside of a query, but keep getting errors.&nbsp; What I have so far is "?{Is the target unhurt?|Yes, |No, %{selected|repeating_attack_$4_attack}}" This is what pops up: &nbsp;{{mod=-}} {{rname=Colossus Slayer}} {{r1= <span class="inlinerollresult showtip tipsy-n-right" title=" Rolling 0d20cs>20 = ()" style="box-sizing: content-box; background-color: rgb(254, 246, 142); border: 2px solid rgb(254, 246, 142); padding: 0px 3px; font-weight: bold; cursor: help; font-size: 1.1em; color: rgb(64, 64, 64); font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;">0 }} {{r2= <span class="inlinerollresult showtip tipsy-n-right" original-title=" Rolling 0d20cs>20 = ()" style="box-sizing: content-box; background-color: rgb(254, 246, 142); border: 2px solid rgb(254, 246, 142); padding: 0px 3px; font-weight: bold; cursor: help; font-size: 1.1em; color: rgb(64, 64, 64); font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;">0 }} 0 {{range=}} {{damage=1}} {{dmg1flag=1}} {{dmg1= <span class="inlinerollresult showtip tipsy-n-right" title=" Rolling 1d8 = ( 3 )" style="box-sizing: content-box; background-color: rgb(254, 246, 142); border: 2px solid rgb(254, 246, 142); padding: 0px 3px; font-weight: bold; cursor: help; font-size: 1.1em; color: rgb(64, 64, 64); font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;">3 }} {{dmg1type=}} 0 {{dmg2= 0 }} {{dmg2type=}} {{crit1= <span class="inlinerollresult showtip tipsy-n-right" original-title=" Rolling 1d8[CRIT] = ( 6 )" style="box-sizing: content-box; background-color: rgb(254, 246, 142); border: 2px solid rgb(254, 246, 142); padding: 0px 3px; font-weight: bold; cursor: help; font-size: 1.1em; color: rgb(64, 64, 64); font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;">6 }} {{crit2= 0 }} 0 {{desc=}} {{spelllevel=}} {{innate=}} {{globalattack=}} {{globaldamage= 0 }} {{globaldamagecrit= 0 }} {{globaldamagetype=}} ammo= {{charname=Belle}}}
For a bit of background, I am attempting to decrease the number of macro buttons I have by causing Hunter's Mark and Colossus Slayer to be called up from a query on the same macro button.
I don't think you can run a macro or sheet command from within a query (not entirely sure, but the result you got seems to support that). A better thing would be to create a button menu with buttons to link to your Colossus Slayer and Hunter's Mark attack entries. So you'd set it up like: /w &lt;your name&gt; &amp;{template:npcaction} {{name=Damage Add Ons?}} {{description=[Colossus Slayer](~&lt;character name&gt;|repeating_attack_$4_attack) [Hunter's Mark](~&lt;character name&gt;|&lt;hunter's mark command&gt;) }}
That's pretty much what I already have, but doing that has tripled the number of buttons that i have for attack rolls, as i do not want to fill the chat needlessly. All 3 rolls together take up half the chat column, amd that many buttons pushes the macro list into the 3rd line of buttons. I was just trying to simplify it.
1588808816
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I would add that sort of thing inside the attack itself. Create a Colossus Slayer Ability. Call it "Colossus-Slayer". In the description of each attack where it would be a possibility, on the last line, its own line. If your character's name is Bob, put: [Colossus Slayer](~Bob|Colossus-Slayer) That button will show up whenever the attack is rolled, however the attack is rolled, and give you the option to run the Ability. I use this approach all the time, mostly for Sneak Attack.
Bummer, that is what I was hoping to prevent, but ok. Thanks.
1588817190
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
You can dramatically reduce the space buttons take up with this One Weird Trick: Inline Links on OGL Roll Templates &nbsp;