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

Character sheet development questions (several)

1606512784
Joshua S.
Pro
Sheet Author
API Scripter
1) Is there an easy way to implement a dropdown input field with multiselect or checkboxes? Or is there a hard way? Or a non-dropdown way that looks like a dropdown way using crazy CSS? 2) Is there a way to use images in dropdown menus (as the input line, not the background) 3) Does underscore.js work in sheet workers? (I know it does in the API) 4) Is there a way to link variables or construct variables from multiple inputs? Say I have a spell that does 3 mental damage. Could I have a line that has a number input, a dropdown where you can select the damage type, and a dropdown where you can select the action type (spell) and have it spit out the array [3, m, spell]? or even a combined variable with inherent separators like 3_m_spell? 5) I know I have seen character sheets that use external data files. How do I tell a character sheet to pull a value or load a .csv or .xls file? Or is the only way to hard code it into the sheet? 6) Does jquery work in sheet workers? Thanks, everyone!
1606564487
Andreas J.
Forum Champion
Sheet Author
Translator
1) Nothing quick afaik 2) I've seen it done, think the Firefly sheet is an example. 3) Yes. [1] 4) Of course. 5) You need to hardcode it in the sheetworkers. To have a function that parses the copypasted text in an input, and then saves it to the relevant attributes on the sheet. JS obviously have have an easier time to parse JSON files, if you can choose what kind of file you have as an input. 6) Pretty sure it doesn't, but some of the functions unique to Roll20 seems like they are jquery-base.