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

Showing roll success & incorporating character attributes as modifiers to attack& Initiative rolls

Hello! I'm working to use the existing Roll 20 character sheet to play the classic Skyrealms of Jorune. Combat involves several steps. Using the default template I've managed to generate tables and macros to work out hit location, armor penetration and injury. Determining "Advantage" (ie initiative) as well as Attack and Defense rolls need to show whether characters have exceeded their attribute values, as well as incorporate values I've listed among Attributes to modify the roll, but am unsure as to how I incorporate these into a macro I can then port back to the character sheet. To be clear the macros used are - ATTACK -> &{template:default} {{name=Sword & Knife Attack}} {{[Attack Roll](!#d20)}}/roll d20 > @{CHARACTER|Sword-ATT} DEFENSE -> &{template:default} {{name=Sword & Knife Attack}} {{[Defense Roll](!#d20)}}/roll d20 > @{CHARACTER|Sword-DEF} ADVANTAGE -> something like /gmroll {1d20} + @{CHARACTER|Sword-ADV} &{tracker} but I haven't tried it in a macro yet Characters have a Size Modifier and Strength Bonus that, when combined equal their Attack Bonus. The value on this may be negative! Regardless I don't have the skill to add Size Modifier and Strength Bonus together, much less incorporate the sum into a roll that shows when the character has exceeded their Attack or Defense Attribute values. Help!
1678438536

Edited 1678438582
GiGs
Pro
Sheet Author
API Scripter
I'm unclear about your macros. What exactly is going on here: &{template:default} {{name=Sword & Knife Attack}} {{[Attack Roll](!#d20)}}/roll d20 > @{CHARACTER|Sword-ATT} I'd have thought this would be more like &{template:default} {{name=Sword & Knife Attack}} {{attack=[[d20 > @{selected|Sword-ATT}]] }} That assumes your attack is a d20 roll to try to get higher than the character's sword-ATT rating. Is that how it works? To get the strength and size modifiers combined you can simply use (@{siz} + @{strength}) replace those with the actual attribute names. They will only work if called from a character sheet ability (or button), otherwise you need to put CHARACTER| before each attribute name (which will usually be replaced with selected| . So your macro probably looks like &{template:default} {{name=Sword & Knife Attack}} {{attack=[[ {d20 + @{str} + @{size},d0}<@{Sword-ATT}]] }} Note that this will give a value of 1 if the total result is below or equal to ATT skill, and a 0 if higher. If you want to actually show the rolled total when below Sword-Att, that has to be done differently.
Thanks GiG!  Combining two sets of macros above I got this -  &{template:default} {{name=Halberd Attack}} {{Halberd=[[d20 > @{Gladys|Halberd-ATT}+({Gladys|Strength_Bonus}+{Gladys|Size_Modifier})]] }} Which returned a value between one and twenty that probably did include those modifiers.  Your third macro above actually returned either a 1 or 2.  How would I show either the rolled total, either above or below the attribute value?
1678503301

Edited 1678580613
GiGs
Pro
Sheet Author
API Scripter
The reason it was generating a score between 1 and 2 is because I made a little error. Using any of these should give 0 or 1 &{template:default} {{name=Sword & Knife Attack}} {{attack=[[ {d20 + @{str} + @{size},d0+100}<@{Sword-ATT}]] }} &{template:default} {{name=Sword & Knife Attack}} {{attack=[[ {d20 + @{str} + @{size} +1,d0}>@{Sword-ATT}]] }} &{template:default} {{name=Sword & Knife Attack}} {{attack=[[ {d20 + @{str} + @{size},d0}<@{Sword-ATT} -1]] }} With this question, How would I show either the rolled total, either above or below the attribute value? , are you asking how you show the number regardless of whether it matches the difficulty? If so, this used to be impossible. It's a facet of the way Roll20 handles its dice that you can't use a roll for more than one thing. If you want to see 0-1 (failure/success) or the actual dice roll, you must choose one or the other - it can't do both. The recent discovery of Reusing rolls does allow this but the method is not very userfriendly. This would work: &{template:default} {{name=Sword & Knife Attack}} [[ {[[d20 + @{Gladys|Strength_Bonus} + @{Gladys|Size_Modifier}]],100}<@{Gladys|Halberd-ATT}]] {{roll=$[[0]] }} {{success=$[[1]] }} Success will show 0 if the roll fails, and 1 if succeeds If this is created as an Ability on the Gladys character, you don't need the Gladys| part: &{template:default} {{name=Sword & Knife Attack}} [[ {[[d20 + @{Strength_Bonus} + @{Size_Modifier}]],100}<@{Halberd-ATT}]] {{roll=$[[0]] }} {{success=$[[1]] }}
I appreciate your mastery of the platform GiG.  I understand better now what I can and cannot report out.  Again many thanks!