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

Abilities: PB included in description, but not in end result.

1585430960

Edited 1585431346
Hi. I'm creating "abilities" for players, but I've kinda hit a speed-bump.  Whenever I test  out the attacks, the "to-hit" roll comes out lower than expected. 1d20+ability_modifier+PB comes out as 1d20+ability_modifier; missing the Proficiency Bonus. However, the PB is included in the first description - in the chat - of the ability, but not the end result. Example:       /emas "Helm" slashes with his greataxe.      Attack roll.      [[1d20 + @{selected|Strength_mod}(STR) + @{selected|PB}(PB)]] to hit.      [[1d12 + @{selected|Strength_mod}(STR) + 1(Magic)]] slashing damage. (Using highest possible values)Comes out as:     Helm slashes with his greataxe     Attack roll.     24  to hit.     16  slashing damage. (Strength mod is 4, PB is 3) Hovering over the "to-hit" roll shows: "Rolling 1d20 + 4(STR) + 3(PB) = (20)+4". Hovering over the damage roll shows: "Rolling 1d12 + 4(STR) + 1(Magic) = (12)+4" Where did the PB (and Magic) value go in the end result? Edit: Added missing info + removed unnecessary quotation marks.
1585431479

Edited 1585432105
vÍnce
Pro
Sheet Author
Try this;       /emas "Helm" slashes with his greataxe.     Attack roll.     [[1d20 + [[@{selected|Strength_mod}]][STR] + [[@{selected|PB}]][PB]]] to hit.     [[1d12 + [[@{selected|Strength_mod}]][STR] + [[1]][Magic]]] slashing damage. I think you can only use the inline label ie "[foo]", within your inline roll if used in conjunction with an "inner" inline roll(s).  I'm guessing the the use of parentheses "()" with a text descriptor breaks the roll since roll20 is expecting a numerical value. EDIT/UPDATE: for clarity Use [] instead of () for labels.  updated macro as well.
Vince said: Try this;       /emas "Helm" slashes with his greataxe.     Attack roll.     [[1d20 + [[@{selected|Strength_mod}]](STR) + [[@{selected|PB}]](PB)]] to hit.     [[1d12 + [[@{selected|Strength_mod}]](STR) + [[1]](Magic)]] slashing damage. I think you can only use the roll descriptions "(foo)" within your inline roll if used in conjunction with a "inner" inline roll. Just tried it. The end result stays the same. Secondly, the "(foo)" works with the "strength_mod" so it should work with the others, no?
1585431958

Edited 1585432022
vÍnce
Pro
Sheet Author
Simon S. said: Vince said: Try this;&nbsp;&nbsp; &nbsp; &nbsp; /emas "Helm" slashes with his greataxe. &nbsp; &nbsp; Attack roll. &nbsp; &nbsp; [[1d20 + [[@{selected|Strength_mod}]](STR) + [[@{selected|PB}]](PB)]] to hit. &nbsp; &nbsp; [[1d12 + [[@{selected|Strength_mod}]](STR) + [[1]](Magic)]] slashing damage. I think you can only use the roll descriptions "(foo)" within your inline roll if used in conjunction with a "inner" inline roll. Just tried it. The end result stays the same. Secondly, the "(foo)" works with the "strength_mod" so it should work with the others, no? I just updated the macro above.&nbsp; Use [] instead of () for labels <a href="https://wiki.roll20.net/Dice_Reference#Including_Additional_Information" rel="nofollow">https://wiki.roll20.net/Dice_Reference#Including_Additional_Information</a>
Vince said: Simon S. said: Vince said: Try this;&nbsp;&nbsp; &nbsp; &nbsp; /emas "Helm" slashes with his greataxe. &nbsp; &nbsp; Attack roll. &nbsp; &nbsp; [[1d20 + [[@{selected|Strength_mod}]](STR) + [[@{selected|PB}]](PB)]] to hit. &nbsp; &nbsp; [[1d12 + [[@{selected|Strength_mod}]](STR) + [[1]](Magic)]] slashing damage. I think you can only use the roll descriptions "(foo)" within your inline roll if used in conjunction with a "inner" inline roll. Just tried it. The end result stays the same. Secondly, the "(foo)" works with the "strength_mod" so it should work with the others, no? I just updated the macro above.&nbsp; Use [] instead of () for labels <a href="https://wiki.roll20.net/Dice_Reference#Including_Additional_Information" rel="nofollow">https://wiki.roll20.net/Dice_Reference#Including_Additional_Information</a> Yeah ^^. Changed it after you updated. Now it seems to work just fine! Thanks for the quick help!
1585432204
vÍnce
Pro
Sheet Author
cool beans
Now I just have to edit all 10(ish) "abilities I did before noticing this... But thanks again!
1585432258
vÍnce
Pro
Sheet Author
Simon S. said: Now I just have to edit all 10(ish) "abilities I did before noticing this... But thanks again! Life on roll20...