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 .
×

GroupCheck process to include Critical Success/Failures

Hi everyone, I have been working on modifying the ApplyDamage script to be compatible with Pathfinder 2e Basic saving throw mechanic (double/full/half/none) damage. So far I have managed to deal with the pass by 10 or fail by 10 to calculate when there is a critical success or failure. However, the RESULTS(,) option from GroupCheck only provides a comma separated list of the save results with no indication of whether or not they were a natural 1 or natural 20. As per Pathfinder 2e rules, a natural 1 decreases the success grade by 1 and a natural 20 improves it by 1. Is there any chance that GroupCheck could provide an option to include that data? My suggestion would be in the form of something along the lines of: 23,27+,8-,14 Those would be 4 rolls with a +7 with the 27+ being a natural 20 and the 8- being a natural 1.  In order for it not to break any existing macros/scripts it could be provided as a different option like CRITRESULTS.
1589023268
Jakob
Sheet Author
API Scripter
I think that can be done. I'm thinking of something like CRITS(,) and then returning results like this c,f,-,-,c,m,f where c = crit, f = fumble, m = mixed, and - = neither. The code for this script is a bit of a mess unfortunately, but I think I could hack this in.
That would be awesome Jakob! If you are going to provide those as a separate array to the RESULTS(,) it only needs to have c, f and any other character even just no value for those that are not critical failures or successes. c,f,,,c,,f Alternatively just append a c or f to the numbers on the CRITS(,) and I'll deal with splitting it. 23,27c,8f,14 Whatever is easier for you. Thanks a lot!