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

Can a character sheet have javascript that modifies the sheet itself?

1616937361

Edited 1616937373
Ok some context.  I would like to run the game Silent Death (a miniature game) on Roll20.  Each ship in the game has a damage track (example below).  Is there a way to trigger something within the sheet as damage is applied to the ship?  Reduce the Drive setting, reduce damage reduction, etc.
1616941636
Andreas J.
Forum Champion
Sheet Author
Translator
only if the sheet code is updated with Action Buttons, <a href="https://wiki.roll20.net/Button#Action_Button" rel="nofollow">https://wiki.roll20.net/Button#Action_Button</a> Or you use API like ChatSetAttr to make the changes. both solutions require pro subscription to implement.
Ok thank you very much!
Sheetworkers (<a href="https://wiki.roll20.net/Building_Character_Sheets#Sheet_Workers_Scripts" rel="nofollow">https://wiki.roll20.net/Building_Character_Sheets#Sheet_Workers_Scripts</a>) might also be able help, too. You can have a sheetworker trigger when a value on the sheet is changed, and it can change other values on the sheet.