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

API / Charaptersheet

Hi everyone! I'm having an issue while creating a custom character sheet. I wrote an automatic calculation: Damage = Base Damage + Bonus Damage if there are charges; if not, the bonus is ignored. Everything works perfectly on the sheet itself — values update correctly — but an unexpected problem appeared. When I use macros from Ammo or chatsetAttr to change the number of charges, the damage doesn't update. As I understand it, a "human touch" is required for the calculation to trigger, but I'm not sure how to properly say it. I'm trying to find a workaround — the idea is good and it's needed for monks in my game. Clarification: I'm looking for help with bypassing the need for a player to manually interact with the sheet when using changes via API. Sorry for my English :)
1753366710
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Are you developing in the sheet sandbox or using the custom sheet game option?
I’m using the Character Sheet Template — I select “custom” from the list. It’s in the game settings. I don’t really know much about the other option :)
1753371734
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Ok, there is currently an error with custom sheet games where the API and the sheet don't interact correctly. I'd recommend using the custom sheet sandbox and my autouploader chrome extension for development .
1753373278

Edited 1753373329
So, does that mean there are no API scripts or any options to make it work together more correctly?
1753474195
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Actually, it looks like that bug has been resolved. I would still recommend developing in the sheet sandbox as it is more streamlined. Can you share the code for your API script?