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

Some nubbie questions about attributes and tables

Before I begin, I just want to say thanks to you guys. I wouldn't be anywhere near where I am on my sheet currently without the insightful knowledge of this forum. I'm still a pretty big noob, but i'm really close to having a functional sheet finished to alpha test my game. It's been an educational and fun experience thus far. After building my first sheet, I didn't like the look. So I broke it down and built a new one. An issue I ran into was my understanding of the "attr_" tag. I didn't have it on any of the fields on my new sheet. After adding it to the many areas I began to wonder some things. First , I know I can define with attr_, but I was also able to define my checkboxes with value= and just had name= set to a value from a1 to a99. Which would be more efficient of the two? Doing the name= was pretty exhausting as I had a lot of fields. Second , how would you define a table? I have a table like this: Do I need an attr_ for each cell, or is there a way to just define the table itself as an attr_? Third , Is there a way to define the scale of the character sheet when it opens? Mine seems to need a little nudge of resizing everytime I reload the room.
1522133547

Edited 1522133613
Jakob
Sheet Author
API Scripter
First , I know I can define with attr_, but I was also able to define my checkboxes with value= and just had name= set to a value from a1 to a99. Which would be more efficient of the two? Doing the name= was pretty exhausting as I had a lot of fields. If I'm understanding this correctly: I would highly recommend using descriptive attribute names instead of name="attr_a1" to name="attr_a99". I would also recommend value="1" for every checkbox unless you have a good reason for the value to be different, but that's my personal preference. Do I need an attr_ for each cell, or is there a way to just define the table itself as an attr_? One for each cell. Third , Is there a way to define the scale of the character sheet when it opens? Mine seems to need a little nudge of resizing everytime I reload the room. No, the size of the opened character sheet window is fixed and cannot be changed. You'll have to work around that. What you can do is remove the extra padding it gets (there'll still be 10px of padding left from the dialogue wrapper): .charsheet { padding: 0 !important; } (!important is probably necessary here in order to beat the roll20 selector's specificity).
1522134501

Edited 1522171408
vÍnce
Pro
Sheet Author
In regards to your table questions; you also might consider using a fieldset (repeating sections) if you find that you have many rows of the same type of attributes. ie spells, equipment, attacks, etc.
Appreciate the input guys. :) The padding change definitly helps. Though it seems to mess with my tabs a bit. I can see the practical application of fieldset, and am considering how best I should use it with what I currently have.
1522171388
vÍnce
Pro
Sheet Author
Danny Martini said: Appreciate the input guys. :) The padding change definitly helps. Though it seems to mess with my tabs a bit. I can see the practical application of fieldset, and am considering how best I should use it with what I currently have. It just allows you to write the section of code once but allows the end-user to add an infinite number of entries as they need.  So for example, if you have an attacks section where someone may add 10 different weapons/attacks, you would only need to write the fields for 1 attack on your sheet.  Equipment/gear is another common area where you might not know if someone needs 10 items or 110. Without knowing your system/sheet, it's hard to tell if you would benefit from using fieldsets.  Repeating section/fieldsets are a very powerful and convenient function that has been leveraged on nearly all sheets.