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

Changing the Attribute Modifiers in Pathfinder Official Sheet

Hello, I've been sifting for a couple hours now but this is far from my area of expertise; can anyone point me in the direction of what lines id be wanting to change if I wanted to INCREASE the attribute mod levels by 1? so 8 becomes the new 0, 10 becomes +1, etc? For the pathfinder official sheet.
1554753563
GiGs
Pro
Sheet Author
API Scripter
I had a look at the sheet but the way it is written makes it very difficult to figure out what needs to be changed. The sheet is maintained by Natha . I'd message him and ask if he'd tell you what you need to change.
thanks!
1554756832

Edited 1554756866
Natha
KS Backer
Sheet Author
API Scripter
(sorry to have disappointed you, GiGs, but PF is a quite complex game/sheet, and to get some not-too-bad performance, code got quite intricate ;) ).   As it can benefits others, I'll copy here what I've answered Johan by PM: Modify the calc_ability_mod function (look for "const calc_ability_mod"). Change this line : mod = Math.floor(((parseInt(String(v[attr]).replace( /[ ^ \d\-]/ gi , "" )) || 0 ) - 10 ) / 2 ); By this line : mod = Math.floor(((parseInt(String(v[attr]).replace( /[ ^ \d\-]/ gi , "" )) || 0 ) - 8 ) / 2 );
1554757462
GiGs
Pro
Sheet Author
API Scripter
hehe, no worries, Natha. I should have realised to search for some permutation of -10 or -5.