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 .
×
May your rolls be merry + bright! 🎄
Create a free account

Help with crit detection to apply a modifier

1538121952

Edited 1538128989
Kari
Sheet Author
I will start this with I know nothing of javascript. I have been developing a system, most of the hassle I have completed creating a custom sheet for it. But I need to be able to handle the critical hit system that it uses. Because it rolls multiple dice, that can each gain a crit success or fail it can be a little awkward doing the math quickly for some. So what I need to do, is in the attacks is have each cs to add the modifier to the damage but each cf to subtract it from the damage. &{template:URPGS_Attack}{{name=@{AtkNm2}}}{{roll=[[@{Atk2}]]}}{{roll2=[[@{Dmg2}]]}} and the modifier in question is. @{LucMod}
1538152259

Edited 1538152389
GiGs
Pro
Sheet Author
API Scripter
Didnt we discuss this in another thread? You can't count multiple crit successes in the way you want without using an API script, which means the sheet wont be as useful to free users. Edit: oops, didnt realise we were in the API forum, lol. Yes, it's doable. There's multiple ways. You might be able to use the Power Card API to achieve this without having to create your own script. There's a Power Cards thread, I'd ask there first, and come back here if you need an actual script written.