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

[Script] CritOverride

Ever had the ability on an attack roll to crit on something other than a nat20? Sure you can change the crit range deep in the weapon settings, but when this can change in the middle of a fight - particularly due to the Paralysed condition where any hit on that target with a melee weapon is a crit - this can be a hassle. This is where CritOverride comes in. It allows the GM to send the player an alternate damage link to the crit damage result in case they crit without having rolled in the critical range on the attack roll! CritOverride (click to play gif) CritOverride's basis is relatively simple: It listens for an attack roll If it sees one in chat it replies placing a little icon that the GM can see (and also a blank whisper - it's recommended to run this with a clientside CSS plugin like Stylebot for this reason) If the GM clicks the icon it will send a Critical Override link to the controllers of the character who made the attack roll (if controlled by "all" the link will be public, if none then the link will be GM only). Clicking that link instead of the typical weapon name for damage will result in critical damage being posted instead of normal damage. (click to play gif - with client CSS example) I apologise for the state of the code. It's getting a bit better but still some way to go. Critique appreciated! Code link. Version History v0.01  - Workable release
1654174733
Julexar
Pro
API Scripter
Nice Script, Beyond20 already does this but definitely useful for those who don't use it
1654179530
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I believe Auto Buttons can do this, but only on the GM side. Nice use of CSS!
1654190176
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
I'm gonna have to dig into this code just to see how you did those transitions with only inline CSS!
1654334591

Edited 1654334665
EE
Pro
keithcurtis said: I believe Auto Buttons can do this, but only on the GM side. Nice use of CSS! Yeah, autobuttons can apply the damage (amazing plugin, it is absolutely fantastic and I love it so much and served as half the inspiration for this) but I wanted to still give the players the visceral joy of having a button to click that gave them the dice of a critical damage roll. Most of my reasoning for this script was a psychological one of wanting to give the players that click. I have to admit it was probably a post by you that made me aware of Stylebot in the first place and now my own custom style replacement for roll20 is almost 2k lines! Gotta thank you for that! Scott C. said: I'm gonna have to dig into this code just to see how you did those transitions with only inline CSS! In the second gif? That is using my custom client CSS stylebot override which is tailored for the 5e OGL sheet and theme (but should work with everything) in addition to the script. I have the code available as a limit release right now (it's around 1.8k lines, I have more background with CSS than programming) if you want a link?