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

Awesome Dice and Character Sheet Help...

1404310167

Edited 1404310711
I'd like help with a macro or a set of macros; whichever gets me the end result that I'd like. First a little background, we are playing D&D Next and my GM just started using the Next-specific character sheets. Before that, I had a macro for everything; I even made reference macros. As you can imagine, it was a bit of work to set up, but once it was set up, all I had to do was change six or seven things when I leveled up. Anywho, I have a moderate understanding of macros, but it's not advanced. I'd like to be able to just change the value of a variable (exempli gratia, increasing the value of an Attribute by clicking on the arrow) on the character sheet tab, without having to go into the attributes/abilities tab (I will change them there if there is no other way, but I'd like to avoid that) and the macros on the bar would need no changes. I think the attack macro would look something like this: "[[d20 + @Dex_Mod [Dexterity Mod] + @Pro_Bonus [Proficiency Bonus] ]]" However, I do not know the @Abc for the actual modifier box variable on the character sheet. Bells and whistles I'd like: -Advantage and disadvantage -If there is a critical hit, I want it to add the damage for me -Crit span of 19-20 and a failure span 1-2 (The weapon that I am using was a campaign-specific weapon that the DM created). Any help that anyone could give me on this would be appreciated. If you don't know how to resolve the entire thing, that is fine. I will continue to attempt to piece it together. Also, if you do happen to solve the problem, an explanation as if I am five years old would be perfect. Thanks, in advance.
1404311640
The Aaron
Roll20 Production Team
API Scripter
For the DnD Next character sheet, you can't access dexterity mod directly, but you can calculate it from dexterity, similarly the proficiency bonus: [[ 1d20 + (@{dexterity}/2-5) + floor((@{level}+5)/4) ]] As for the bells and whistles, you won't be able to do those without the API, and even then the interface is challenging. For advantaged/disadvantaged, the prevailing wisdom is to just do the attack roll twice. Use the first number normally, consider both if advantaged/disadvantaged and choose the appropriate value: [[ 1d20 + (@{dexterity}/2-5) + floor((@{level}+5)/4) ]] | [[ 1d20 + (@{dexterity}/2-5) + floor((@{level}+5)/4) ]] For a critical hit, you would need to set up logic first to know what would be a critical hit (20? 19-20? etc), Then set up logic to know how to adjust the damage if you do have a critical hit. Needless to say, that can get quite complicated. HoneyBadger's PowerCard script handles detecting criticals in a larger range, but does not adjust the damage accordingly (and never will, as HoneyBadger is very anti-automation in his scripts). Hope that helps!
Thanks, Aaron. That was extremely helpful and I appreciate it. I think I'm beginning to understand how complex my request is now. I wonder if there is a possible string of logic to roll multiple rolls and I tell it whether I have advantage or not, giving it the information it needs to give me the proper roll result. Maybe something like: "[[?(Advantage/Disadvantage)|2d20KH1/2d20KL1]]", but I don't know fully how most of that stuff works. I know that "?" causes a query, but I don't know if you can have acceptable query variables other than just numbers. I know that "2d20KH1" is roll two, keep the highest, but the other information, I just extrapolated. I don't know what the parentheses do in this case or even the pipe.
1404314206
The Aaron
Roll20 Production Team
API Scripter
There are some things you can do, but you might be better off to just have multiple macros. The main problem is that you don't have the capability to remember any values via the macros. You could possibly design a way to set attributes so that you know you are advantaged or disadvantaged, then construct a series of rolls in such a way that you end up with the correct single number displayed for if you are advantaged or disadvantaged, but it would be very complicated and would require adjusting attributes before rolling, which sort of removes the usefulness of it. You might be able to get it down to the point where you click a macro button to declare you are advantaged, then click a macro to roll your attack, but at that point, you might still be better off writing two separate macros, or just putting both rolls in one. The pipe character is just displayed as a visual break: Attack: [[ 1d20+8]] | [[ 1d20+8]] Will show: Attack: 26 | 28 for rolling an 18 and a 20.For a normal attack, you'd just take the 26, for advantaged, you take the 28, for disadvantaged, you take the 26. The parentheses are just to ensure the proper mathematical precedence: [[floor( (6+5) / 4 )]] === 2 [[floor( 6 + 5/4 )]] === 7 ( bold operation performed first).
1404322651
Actoba
Pro
Sheet Author
Just for the record....the DnD Next char sheet does have dex mod and proficiency bonus built in that you can use in macros without having to do the calcs yourself. - @{dexterity_mod} @{PB}
1404324172
The Aaron
Roll20 Production Team
API Scripter
Weird, I couldn't get them to show up. I've only partially filled out the character sheet though, so probably I have to check some places that use them in order to cause them to get populated... nope. They just magically work. Interesting, I wasn't aware of that!
1404325172

Edited 1404325182
Actoba
Pro
Sheet Author
Should be just level (for proficiency bonus) and dexterity score (for the dex mod) :)
1404326487
The Aaron
Roll20 Production Team
API Scripter
Right, I see those, I just don't see an attribute for PB or dexterity_mod. I assume those magical names get looked up on the character sheet as formulas (particularly since referencing them gives me the formula, not the value).
1404326792

Edited 1404326973
Actoba
Pro
Sheet Author
They are auto calc values which means that if you want to use them you have to use them as part of a roll...otherwise you get the formula instead of the result of the formula. This is also why they wont show in the attributes tab too. Full details on the wiki page for the Next sheet - <a href="https://wiki.roll20.net/DnDNext_Character_Sheet#Attributes" rel="nofollow">https://wiki.roll20.net/DnDNext_Character_Sheet#Attributes</a> Edit : Actuall this section might help to explain more....the example with the character "Steve" and his strength_mod being the best explanation - <a href="https://wiki.roll20.net/DnDNext_Character_Sheet#Advanced_Usage" rel="nofollow">https://wiki.roll20.net/DnDNext_Character_Sheet#Advanced_Usage</a>
1404327492
The Aaron
Roll20 Production Team
API Scripter
Wow! Nice wiki page!
Thanks, Actoba, and thanks again, Aaron, for the help.