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

Building new character sheet (questions)

1411358137
Falcon
Pro
Sheet Author
I am fairly new to building a new character sheet but feel that my crash course in HTML programming has done well. I have the following questions: 1) How do you add attributes within a disabled input? 2) Can you add them with the repeatable input option? (and how if you can) 3) Can you make the input fields a different color or shade? Can you make them more 3d? 4) Can you autofill other input fields (or labels) from other input fields. For example if I choose a weapon off a list can I call up a table to enter in the rest? That's good for now. Apologies a head of the time if any of these questions were already asked.
1411364368
Lithl
Pro
Sheet Author
API Scripter
Make the input disabled, and add the attributes in the input's value. For example: <input type="number" disabled="disabled" name="attr_str-con" value="@{str}+@{con}" /> You can access attributes from outside a repeating section in fields you put in a repeating section, but you cannot do the reverse. So, you cannot for example sum all of the values of the items in the character's inventory. Yes. All of this can be done with CSS. No, you cannot.
1411369597
Falcon
Pro
Sheet Author
Thanks Brian - Darn limitations of HTML. (I got 2 out of 4). So there is no way to add up the weight of all the items someone has in inventory using repeatable sections? I guess the problem is you wouldn't know how many items they had....
In my 5e sheet, I use 3 tabs for weighted items, and 1 tab for weightless (the weightless is a repeatable), the rest have 10 each.
1411417752
Falcon
Pro
Sheet Author
Brian, I know I am asking alot. Can I get some assistance on my sheet?
Since so much of this is being done with HTML, can you use javascript for any of it?
1411448885
Falcon
Pro
Sheet Author
No - they disabled it for sheets.