Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Difference between revisions of "Talk:Character Sheets"

From Roll20 Wiki

Jump to: navigation, search
(marking unsigned comments, adding sections)
(Drag & Drop Ability macros: -- removing self-solved problem)
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== Math Functions ==
 
== Math Functions ==
 
What about Math.min() and Math.max() ? <small><span class="autosigned">—&nbsp;Preceding unsigned comment added by [[User:456953]] ([[User talk:456953|talk]] • [[Special:Contributions/456953|contribs]]) 22:33, 3 June 2014 (EST)</span></small><!-- Template:Unsigned -->
 
What about Math.min() and Math.max() ? <small><span class="autosigned">—&nbsp;Preceding unsigned comment added by [[User:456953]] ([[User talk:456953|talk]] • [[Special:Contributions/456953|contribs]]) 22:33, 3 June 2014 (EST)</span></small><!-- Template:Unsigned -->
 +
:In roll buttons, <code>min</code> can be achieved with the kl or dh group modifier, and <code>max</code> can be achieved with the kh or dl group modifier. For example: <code>/roll {2d6, 0d0+3}kh1</code> will produce 3 if you roll snake eyes, and <code>/roll {2d6, 0d0+11}kl1</code> will produce 11 if you roll box cars.
 +
:In autocalc fields, you can achieve <code>min</code> and <code>max</code> with <code>(((@{x} + @{y}) - abs(@{x} - @{y})) / 2)</code> and <code>(((@{x} + @{y}) + abs(@{x} - @{y})) / 2)</code>, respectively. <div style="display:inline-block;border:1px solid blue;background:#bbbbff;padding:0 3px 0 3px;font-size:10px">[[User:235259]]&nbsp;&ndash;&nbsp;({{user profile|235259|profile}}&nbsp;•&nbsp;[[User talk:235259|talk]]&nbsp;•&nbsp;[[Special:Contributions/235259|contrib]])</div> 11:26, 22 January 2015 (EST)
  
 
== Incorporating JavaScript ==
 
== Incorporating JavaScript ==
Line 6: Line 8:
 
I thought it could be improved if you could make sections collapsible. I wonder now if you can use javascript  
 
I thought it could be improved if you could make sections collapsible. I wonder now if you can use javascript  
 
to make it possible. <small><span class="autosigned">—&nbsp;Preceding unsigned comment added by [[User:636395]] ([[User talk:636395|talk]] • [[Special:Contributions/636395|contribs]]) 06:01, 20 January 2015 (EST)‎</span></small><!-- Template:Unsigned -->
 
to make it possible. <small><span class="autosigned">—&nbsp;Preceding unsigned comment added by [[User:636395]] ([[User talk:636395|talk]] • [[Special:Contributions/636395|contribs]]) 06:01, 20 January 2015 (EST)‎</span></small><!-- Template:Unsigned -->
 +
:While JavaScript cannot be incorporated into character sheets, collapsible sections can be created with checkbox inputs and CSS. [http://jsfiddle.net/LTnd7/ Here's a jsfidle] demonstrating the concept. Most important to note, the element that you're collapsing must be either a sibling of the checkbox, or a descendant of a sibling of the checkbox.
 +
:Feel free to check out the [https://app.roll20.net/forum/post/882997/css-wizardry#post-882997 CSS Wizardry] thread for more tricks. <div style="display:inline-block;border:1px solid blue;background:#bbbbff;padding:0 3px 0 3px;font-size:10px">[[User:235259]]&nbsp;&ndash;&nbsp;({{user profile|235259|profile}}&nbsp;•&nbsp;[[User talk:235259|talk]]&nbsp;•&nbsp;[[Special:Contributions/235259|contrib]])</div> 11:29, 22 January 2015 (EST)
 +
 +
== Repeating sections with table rows ==
 +
If a fieldset with a repeating class is nested inside a table, will rows be duplicated properly? <small><span class="autosigned">—&nbsp;Preceding unsigned comment added by [[User:185460]] ([[User talk:185460|talk]] • [[Special:Contributions/185460|contribs]]) 15:35, 24 June 2014 (EST)</span></small><!-- Template:Unsigned -->
 +
:No. The issue is that wrapping a fieldset around rows in a table is invalid HTML, and so the browser is pretty much free to handle the situation however it wants. Many browsers will simply eject the fieldset from the table markup, leaving the fieldset empty, which is rather useless for a repeating section.
 +
:If you want table layout with repeating section behavior, consider using <code>display: table</code>, <code>display: table-row</code>, and <code>display: table-cell</code> on some <code>&lt;div&gt;</code> elements. <div style="display:inline-block;border:1px solid blue;background:#bbbbff;padding:0 3px 0 3px;font-size:10px">[[User:235259]]&nbsp;&ndash;&nbsp;({{user profile|235259|profile}}&nbsp;•&nbsp;[[User talk:235259|talk]]&nbsp;•&nbsp;[[Special:Contributions/235259|contrib]])</div> 11:33, 22 January 2015 (EST)
 +
 +
== How do i remove buttons from the macro quick bar ==
 +
 +
{{ambox|type=move|text=This section is copied from a page by the same name created in error. The new page should have been a comment on this talk page, and has been moved.}}
 +
So I dragged some sheet rolls from the Character Sheet down to the Macro Quick Bar, just like in the example; but, now I want to get rid of them... the method certainly isn't intuitive... How can I banish them? <small><span class="autosigned">—&nbsp;Preceding unsigned comment added by [[User:562967]] ([[User talk:562967|talk]] • [[Special:Contributions/562967|contribs]]) 00:48, 20 January 2015‎ (EST)</span></small><!-- Template:Unsigned -->
 +
 +
I dragged Sheet-roll macros from the Pathfinder character sheet to my Macro Quick Bar, just like in the video; however, they are NOT LISTED in the Macros section of My Settings, and therefore, I can't hide or delete them, without hiding the entire Macro Quick Bar! THIS IS DRIVING ME INSANE! Shift+Clicking them also doesn't open them for editing, so I can't delete them that way either. HELP! HELP! HELP! please... <small><span class="autosigned">—&nbsp;Preceding unsigned comment added by [[User:562967]] ([[User talk:562967|talk]] • [[Special:Contributions/562967|contribs]]) 01:12, 20 January 2015‎ (EST)</span></small><!-- Template:Unsigned -->
 +
:'''Try this:''' [[Character Sheets#Drag and Drop Buttons|Drag and Drop Buttons]] ([[:File:Charsheetexample2.gif|example gif]]) <small><span class="autosigned">—&nbsp;Preceding unsigned comment added by [[User:463088]] ([[User talk:463088|talk]] • [[Special:Contributions/463088|contribs]]) 04:05, 20 January 2015‎ (EST)</span></small><!-- Template:Unsigned -->

Revision as of 09:09, 2 October 2016

Contents

Math Functions

What about Math.min() and Math.max() ? — Preceding unsigned comment added by Barrie T. (talkcontribs) 22:33, 3 June 2014 (EST)

In roll buttons, min can be achieved with the kl or dh group modifier, and max can be achieved with the kh or dl group modifier. For example: /roll {2d6, 0d0+3}kh1 will produce 3 if you roll snake eyes, and /roll {2d6, 0d0+11}kl1 will produce 11 if you roll box cars.
In autocalc fields, you can achieve min and max with (((@{x} + @{y}) - abs(@{x} - @{y})) / 2) and (((@{x} + @{y}) + abs(@{x} - @{y})) / 2), respectively.
Brian – (profile • talk • contrib)
11:26, 22 January 2015 (EST)

Incorporating JavaScript

I work a lot with that D&D 3.5 Sheet by Diana P. but i never liked the original d&d sheet, it is really messy. I thought it could be improved if you could make sections collapsible. I wonder now if you can use javascript to make it possible. — Preceding unsigned comment added by Marco G. (talkcontribs) 06:01, 20 January 2015 (EST)‎

While JavaScript cannot be incorporated into character sheets, collapsible sections can be created with checkbox inputs and CSS. Here's a jsfidle demonstrating the concept. Most important to note, the element that you're collapsing must be either a sibling of the checkbox, or a descendant of a sibling of the checkbox.
Feel free to check out the CSS Wizardry thread for more tricks.
Brian – (profile • talk • contrib)
11:29, 22 January 2015 (EST)

Repeating sections with table rows

If a fieldset with a repeating class is nested inside a table, will rows be duplicated properly? — Preceding unsigned comment added by Bio B. (talkcontribs) 15:35, 24 June 2014 (EST)

No. The issue is that wrapping a fieldset around rows in a table is invalid HTML, and so the browser is pretty much free to handle the situation however it wants. Many browsers will simply eject the fieldset from the table markup, leaving the fieldset empty, which is rather useless for a repeating section.
If you want table layout with repeating section behavior, consider using display: table, display: table-row, and display: table-cell on some <div> elements.
Brian – (profile • talk • contrib)
11:33, 22 January 2015 (EST)

How do i remove buttons from the macro quick bar

So I dragged some sheet rolls from the Character Sheet down to the Macro Quick Bar, just like in the example; but, now I want to get rid of them... the method certainly isn't intuitive... How can I banish them? — Preceding unsigned comment added by Tyler R. (talkcontribs) 00:48, 20 January 2015‎ (EST)

I dragged Sheet-roll macros from the Pathfinder character sheet to my Macro Quick Bar, just like in the video; however, they are NOT LISTED in the Macros section of My Settings, and therefore, I can't hide or delete them, without hiding the entire Macro Quick Bar! THIS IS DRIVING ME INSANE! Shift+Clicking them also doesn't open them for editing, so I can't delete them that way either. HELP! HELP! HELP! please... — Preceding unsigned comment added by Tyler R. (talkcontribs) 01:12, 20 January 2015‎ (EST)

Try this: Drag and Drop Buttons (example gif) — Preceding unsigned comment added by Vince (talkcontribs) 04:05, 20 January 2015‎ (EST)