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

Query's for Attack and damage

I'm trying to make a query for empowered weapon I need to add spell slot level to attack roll and spell slot level +1d6 to damage I can make it work for just attack or damage but not both on the same query drop down? Can anyone please help this is what I'm trying to use  +?{Empower Weapon|1,1,1d6dmg[1]|2,2d6[2]|3,3d6[3]|No,0} Thanks for any help I can get.
1618423347
The Aaron
Roll20 Production Team
API Scripter
The format for Roll Queries is: ?{<QUESTION>|[<LABEL>,]<VALUE>|...} Meaning, you'd have something like: ?{Number} ?{Number|1|2|3|4} ?{Number|one,1|two,2|three,3|four,4} The first is an open prompt and takes the value of whatever is put into it. The second is a drop down with 1,2,3,4 and takes the value 1,2,3, or 4 The third is a drop down with one, two, three, four and takes the value 1,2,3, or 4 You'll need to reformat your Roll Query to match one of those formats.
I'm new to this type of calculation all most shouldn't be attempting it. I don't understand where to put the query under the attack or under the damage? If I want to use a 2nd lvl spell slot which would be +2 to Atk and 2d6 to added dmg what would that look like and where would you place it? Thanks
1618424376
The Aaron
Roll20 Production Team
API Scripter
That's more of a Character Sheet question, I'll have to leave that to people that use the 5e sheet.
1618428656
Andreas J.
Forum Champion
Sheet Author
Translator
worth checking: <a href="https://wiki.roll20.net/Complete_Guide_to_Macros_%26_Rolls" rel="nofollow">https://wiki.roll20.net/Complete_Guide_to_Macros_%26_Rolls</a>
1618455210

Edited 1618455323
Gauss
Forum Champion
@Rieno, I would go simpler, if you take the d6 out of the query it will work for both attack and damage.&nbsp; example: attack roll modifier: +?{Empower Weapon|0} damage roll modifier: +?{Empower Weapon|0}d6 You should still be able to do it as a table that way.
1618483585
Ziechael
Forum Champion
Sheet Author
API Scripter
Stop spamming forums then? (This is a bot or a spam artist attempting to look human, have no pity for them given my tone, they deserve it) Petrina Mysense said: I am facing some bugs in it&nbsp; Also, reported...
1618483781
Ziechael
Forum Champion
Sheet Author
API Scripter
With regards to the OP, who is human and deserving of help and attention... If you are using the official 5e sheet you can override the to hit and damage sections of the template by injecting template sections in the description field: }} {{r1=[[1d20cs&gt;@{atkcritrange} + [[@{atkattr_base}]] + @{atkmod} + [[@{atkprofflag}]][PROF]&nbsp; + ?{Empower Weapon|0}]]}} {{r2=[[1d20cs&gt;@{atkcritrange} + [[@{atkattr_base}]] + @{atkmod} + [[@{atkprofflag}]][PROF] + ?{Empower Weapon}]]}} {{dmg1=[[@{dmgbase}+[[@{dmgattr}]] +@{dmgmod}[MOD] + (+ ?{Empower Weapon}d6)]] If you want a description still as part of the output you can put it before the first }}... For clarification it goes in this section:
Thank you all so much, this was very helpful.