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?

March 28 (4 years ago)

Edited March 28 (4 years ago)

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.


March 28 (4 years ago)
Andreas J.
Forum Champion
Sheet Author
Translator

only if the sheet code is updated with Action Buttons, https://wiki.roll20.net/Button#Action_Button

Or you use API like ChatSetAttr to make the changes. both solutions require pro subscription to implement.

March 28 (4 years ago)

Ok thank you very much!

Sheetworkers (https://wiki.roll20.net/Building_Character_Sheets#Sheet_Workers_Scripts) 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.