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

Pathfinder Community Sheet - Do certain variables have a cap?

 I'm messing around with some homebrew stuff and have the following: And for some reason when using !ammo script I get this: Is there a limit of 10000 for Spell Points or something? I clicked the Recalculate button to make sure it was updated but no matter what any value above 10000 doesn't seem to work according to !ammo ? Is this an issue with the Sheet or !ammo ? Or is it a Roll20 global cap on integer size or something? What am I missing here?
Nevermind I think I found the culprit in the Ammo scripts: adjustAmmo = function (who,attr,amount,label,playerid) { var val = parseInt(attr.get('current'),10)||0, max = parseInt(attr.get('max'),10)||10000, adj = (val+amount), chr = getObj('character',attr.get('characterid')), valid = true; label=label||'ammo'; That seems to be the cause of the error messages in !ammo - all I need to do is raise the cap.
I always do this. I have a problem, I take a quick glance at the issue, turn to the community for help, and 5 minutes later figure it out on my own.