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

Macro/Button for reducing/raising crit range

Hi-Hello! Sorry beforehand if there's a thread answering this question already, I couldn't find one when looking. I'm DMing a game of Phandelver and Below, and I have a player that's playing a Homebrew Gunslinger class made by Heavyarms. A feature of this class is whenever you hit consecutive ranged attacks, you can lower your crit-rating by 1 for each attack hit (which resets upon hitting the crit). I know that there is the Crit Range setting within the character sheet, but I wonder if I could have a button/class resource tab made, where you can simply raise and reduce the crit range, by either pressing an up/down arrow or pressing a button. I found the attribute called default_critical_range, but I'm unsure of what to do from here. Does anyone know if this is possible, or am I shooting for the stars? :] 
1727604016

Edited 1727617065
You cannot modify attributes with chat commands or buttons without scripts, but you can create a drop down query for the critical rate by making a custom attack roll - I'm assuming you're using the D&D 2014 sheet (you should specify your sheet when asking for this kind of help), and if you use the attack and then press up in the chat input, you'll get the attack template. In it, you'll find a section that looks something like this: (example) {{r1=[[@{character|d20}cs>20 + 3[STR] + 5[PROF] + 2[MAGIC]]]}} @{character|rtype}cs>20 + 3[STR] + 5[PROF] + 2[MAGIC]]]}} Now, make a query that's something like this: ?{crit range|20|19|18|17|16|15|14|13|12|11|10|9|8|7|6|5|4|3|2} and insert it into the section above, like this: {{r1=[[@{character|d20}cs> ?{crit range|20|19|18|17|16|15|14|13|12|11|10|9|8|7|6|5|4|3|2} + 3[STR] + 5[PROF] + 2[MAGIC]]]}} @{character|rtype}cs>?{crit range} + 3[STR] + 5[PROF] + 2[MAGIC]]]}} This way, every time the attack is made, the crit range is prompted for.
Ah, I'll make sure to specify what sheet I'm using in the future, but yes you're right It's the 2014 5e Sheets :] I don't mess around a whole lot with the attributes inside of Roll20, and my understanding for coding/programming is zero to none. Either way, I super appreciate your explanation, and I think I understand what you're suggesting. When I get home, I'll give it a try and see if I can make your solution work. Thanks for reaching out! >:]
Tuo said: You cannot modify attributes with chat commands or buttons without scripts, but you can create a drop down query for the critical rate by making a custom attack roll - I'm assuming you're using the D&D 2014 sheet (you should specify your sheet when asking for this kind of help), and if you use the attack and then press up in the chat input, you'll get the attack template. In it, you'll find a section that looks something like this: (example) {{r1=[[@{character|d20}cs>20 + 3[STR] + 5[PROF] + 2[MAGIC]]]}} @{character|rtype}cs>20 + 3[STR] + 5[PROF] + 2[MAGIC]]]}} Now, make a query that's something like this: ?{crit range|20|19|18|17|16|15|14|13|12|11|10|9|8|7|6|5|4|3|2} and insert it into the section above, like this: {{r1=[[@{character|d20}cs> ?{crit range|20|19|18|17|16|15|14|13|12|11|10|9|8|7|6|5|4|3|2} + 3[STR] + 5[PROF] + 2[MAGIC]]]}} @{character|rtype}cs>?{crit range} + 3[STR] + 5[PROF] + 2[MAGIC]]]}} This way, every time the attack is made, the crit range is prompted for. Just gave this a test and it worked wonders, thank you again!
1727636551

Edited 1727637188
Another option: on the character, go to the Attributes & Abilities tab and find the attribute named 'default_critical_range' and put this in the current value: ?{Crit Range?|20} Whenever that character makes an attack roll, they will be prompted to input their current crit range. You can also cut-and-paste that query into any individual attack 'critical range' field. If you want to use a Resource field, that is also possible. Fill out the repeating resource, then in the 'default_critical_range' you would put '@{repeating_resource_$0_resource_left}' if it is the first repeating resource field, or  '@{repeating_resource_$0_resource_right}' for the second field,  '@{repeating_resource_$1_resource_left}' for the third, and so on. This example would be  '@{repeating_resource_$1_resource_right}'.