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

Event when an action is clicked on the character sheet?

Greetings! I have the feeling there is no way to do it, but I will still ask anyway in case I just didn't look correctly... I'm using the pathfinder 2 character sheet from Roll20, and I would like to know if there is a way to catch an action, no matter if it's an attack, an ability check or a spell, with a script. For now, I managed to catch them via the result in the chat, but sadly, it doesn't allow me to interact with the action, nor change the result of the dice nor anything. Is there a way to catch the action, or at least trying to find said action in the character sheet? Or the character sheet is totally out of reach from the API?
1633413351
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Unfortunately, these aspects of the character sheets are out of the API's direct access. The sort of interaction you're looking for is only possible within the sheet code itself.
With further researches, I saw a tip about using the source code of the character sheet from github, and copy it to the respective tabs bellow the selected custom character sheet... If only I wasn't using Pathfinder 2, the version on Github is 2 years old and version 3.09, while the one used actively in roll20 is version 4.5! If I could get the current version of Pathfinder 2 and edit it myself, I guess I could manage to do something (from what I saw from the older version) but it won't be possible... I'm basically stuck. I hope roll20 will update the source code of Pathfinder 2 soon...