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 .
×

ChatSetAttr Quick Question

My gm is running a homebrew system, and tasked me with the coding. Based on my HTML journey so far, I don't think I'll be writing a character sheet. Do I need a sheet to use the Toggle Buffs feature in ChatSetAttr? 
1647949946
timmaugh
Roll20 Production Team
API Scripter
Each character is represented by a number of datapoints stored in the firebase db on the backend of Roll20. Any datapoint associated with the character will be written there. So you have a "sheet" regardless of if you have a "sheet"... if that makes sense. The HTML is the presentation of the data, and is a part of the code that drives how that sheet works in order to do things like autocalculate, etc. But even if you don't "create" a presentation/look for the sheet, the ability to store data will be there. Specifically to CSA and buffs... those are probably (I haven't looked) checkboxes that are getting enabled/disabled. Checkboxes are, again, just a presentation of the data behind them, and one you're only going to get by having it built into the sheet. Ultimately, I think the data behind a checkbox is just a -1 for true and a 0 for false, so you can, I think, throw an attribute at a generic sheet and tell CSA to "toggle" it. The presentation won't be pretty... and you won't have sheetworkers there to take action based on the value of the field changing... but you should be able to toggle the value. I think.