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

newbie character sheet issue

1615741039
Paul V.
Pro
Sheet Author
Compendium Curator
Hi I've created a html file and ccs file.. they work fine outside of roll20 when i test them in my local browser (i include the html and body tags in that test), but when i load them into the sandbox campaign i have, the css never gets applied to the sheet. Its a big css and html so i'll just post a bit of the css, as none of it is working tr {mso-height-source:auto;} col {mso-width-source:auto;} br {mso-data-placement:same-cell;} .sheet-style0 {mso-number-format:General; text-align:general; vertical-align:bottom; white-space:nowrap; mso-rotate:0; mso-background-source:auto; mso-pattern:auto; color:black; font-size:10.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Arial; mso-generic-font-family:auto; mso-font-charset:0; border:none; mso-protection:locked visible; mso-style-name:Normal; mso-style-id:0;} td {mso-style-parent:sheet-style0; padding-top:1px; padding-right:1px; padding-left:1px; mso-ignore:padding; color:black; font-size:10.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Arial; mso-generic-font-family:auto; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;} .sheet-xl65 {mso-style-parent:sheet-style0; color:#C00000; font-family:Verdana; mso-generic-font-family:auto; mso-font-charset:0; text-align:center; vertical-align:middle; background:#425363; mso-pattern:#425363 none;} .sheet-xl66 {mso-style-parent:sheet-style0; font-size:12.0pt; font-weight:700; font-family:Verdana; mso-generic-font-family:auto; mso-font-charset:0; text-align:center; vertical-align:middle; border:.5pt solid white; background:#C9DAF8; mso-pattern:#C9DAF8 none;} .sheet-xl66 input[type=number] {mso-style-parent:sheet-style0; font-size:12.0pt; font-weight:700; font-family:Verdana; mso-generic-font-family:auto; mso-font-charset:0; text-align:center; vertical-align:middle; border:.5pt solid white; background:#C9DAF8; width: 36px; mso-pattern:#C9DAF8 none;}
1615741297
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
One thing I see that is probably a problem is that you are using microsoft office css properties (anything with mso-). These are css properties that are specific to office, and it's highly unlikely that they'll work outside of that environment or an email client.
1615741540
Paul V.
Pro
Sheet Author
Compendium Curator
yup, i exported the sheet for excel and hacked it into a html form.. ok do you have an idea what i use instead i'm a little lost with css.. 
1615742880
Paul V.
Pro
Sheet Author
Compendium Curator
thank you that worked i just took all the mso tags out
1615744219
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Be careful, many of those mso properties don't exist in CSS. I'd recommend doing something like a codeacademy CSS/HTML course. Once you've got a grounding in CSS, I find w3schools CSS and html sections useful for reminding myself of syntax.
1615749374
Andreas J.
Forum Champion
Sheet Author
Translator
Paul V. said: yup, i exported the sheet for excel and hacked it into a html form.. ok do you have an idea what i use instead i'm a little lost with css.. exporting an excel to html is a bad idea, I've done it and it was absoulty horrible to try to whip in shape the code to be practical for roll20. <a href="https://wiki.roll20.net/Building_Character_Sheets" rel="nofollow">https://wiki.roll20.net/Building_Character_Sheets</a> &nbsp;read the documentation, look at the example/template sheets, check the layout design stuff etc.&nbsp;
1615754191
Paul V.
Pro
Sheet Author
Compendium Curator
Thank you, i got it working, the formatting is off slightly.. but close enough. &nbsp;I just need to go through all the miso tags i removed (i have a copy of the css pre removal) and check what they were doing and recreate that with pure css. thanks for the pointers, as i said I’m picking it up as i go.. but its mostly straight forward and easy...&nbsp; Andreas J. said: Paul V. said: yup, i exported the sheet for excel and hacked it into a html form.. ok do you have an idea what i use instead i'm a little lost with css.. exporting an excel to html is a bad idea, I've done it and it was absoulty horrible to try to whip in shape the code to be practical for roll20. <a href="https://wiki.roll20.net/Building_Character_Sheets" rel="nofollow">https://wiki.roll20.net/Building_Character_Sheets</a> &nbsp;read the documentation, look at the example/template sheets, check the layout design stuff etc.&nbsp; yup i realise its not the best idea, but i know html well enough to whip it into shape and the format i had was pretty straight forward.. just need to do some tidy up on the naming conventions etc...&nbsp; but the sheet works and looks ok so that’s a win as far as I’m concerned
1615828923
Paul V.
Pro
Sheet Author
Compendium Curator
ok next issue getting an error on roll templates :&nbsp; No attribute was found for @{Ciphop Sagipea|template:skill}&nbsp; &nbsp;-&nbsp; Ciphop Sagipea is the name of the test character &lt;button type="roll" value="@{template:skillroll} {{name="acrobatics"}}{{success=1d10+@{acrobatics_total}}} {{skill=@{acrobatics}d10+@{acrobatics_total}}}"/&gt; &lt;rolltemplate class="sheet-rolltemplate-skill"&gt; &nbsp; &nbsp; &lt;div class="container"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div&gt;&lt;h1&gt;{{name}}&lt;/h1&gt;&lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class="arrow-container"&gt;&lt;div class="arrow-right"&gt;&lt;/div&gt;&lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class="rowcolor"&gt;&lt;span class="tcat"&gt;Success: &lt;/span&gt;{{success}} | {{skill}}&lt;/div&gt; &nbsp; &nbsp; &lt;/div&gt; &lt;/rolltemplate&gt;
1615829065
Paul V.
Pro
Sheet Author
Compendium Curator
found it &lt;button type="roll" value="@{template:skillroll} {{name="acrobatics"}}{{success=1d10+@{acrobatics_total}}} {{skill=@{acrobatics}d10+@{acrobatics_total}}}"/&gt; should have been&nbsp; &lt;button type="roll" value="&amp;{template:skillroll} {{name="acrobatics"}}{{success=1d10+@{acrobatics_total}}} {{skill=@{acrobatics}d10+@{acrobatics_total}}}"/&gt;
1615830205
Paul V.
Pro
Sheet Author
Compendium Curator
anyone know the coding for rolling a dice pool + a modifier on each dice? so rolling 4d10 +6 but not getting the total but getting the number on each dice +6&nbsp;
1615841876
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Unfortunately, there isn't an easy way to do that. You need to specify it for each. Is it always 4d10? or is this a die pool that can grow/shrink?
1615873104
Paul V.
Pro
Sheet Author
Compendium Curator
it can grow and shrink..&nbsp; you roll the number of dice equal to your skill plus one, but add your skill and stat to each dice
1615884523
Paul V.
Pro
Sheet Author
Compendium Curator
ok worked out how to do it use different roll template depending on the value of another field.. could use a sheet worker (once i work out how to do them) to update the value of the button when the link stat changes &lt;rolltemplate class="sheet-rolltemplate-skill0"&gt; &nbsp; &nbsp; &lt;div class="container"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div&gt;&lt;h1&gt;{{name}}&lt;/h1&gt;&lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class="arrow-container"&gt;&lt;div class="arrow-right"&gt;&lt;/div&gt;&lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class="rowcolor"&gt;&lt;span class="tcat"&gt;Success: &lt;/span&gt;{{success}} | Skill: {{skill0}}&lt;/div&gt; &nbsp; &nbsp; &lt;/div&gt; &lt;/rolltemplate&gt; &lt;rolltemplate class="sheet-rolltemplate-skill1"&gt; &nbsp; &nbsp; &lt;div class="container"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div&gt;&lt;h1&gt;{{name}}&lt;/h1&gt;&lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class="arrow-container"&gt;&lt;div class="arrow-right"&gt;&lt;/div&gt;&lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class="rowcolor"&gt;&lt;span class="tcat"&gt;Success: &lt;/span&gt;{{success}} | Skill: {{skill0}}{{skill1}}&lt;/div&gt; &nbsp; &nbsp; &lt;/div&gt; &lt;/rolltemplate&gt; &lt;rolltemplate class="sheet-rolltemplate-skill2"&gt; &nbsp; &nbsp; &lt;div class="container"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div&gt;&lt;h1&gt;{{name}}&lt;/h1&gt;&lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class="arrow-container"&gt;&lt;div class="arrow-right"&gt;&lt;/div&gt;&lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class="rowcolor"&gt;&lt;span class="tcat"&gt;Success: &lt;/span&gt;{{success}} | {{skill0}} | {{skill1}} | {{skill2}}&lt;/div&gt; &nbsp; &nbsp; &lt;/div&gt; &lt;/rolltemplate&gt; &lt;rolltemplate class="sheet-rolltemplate-skill3"&gt; &nbsp; &nbsp; &lt;div class="container"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div&gt;&lt;h1&gt;{{name}}&lt;/h1&gt;&lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class="arrow-container"&gt;&lt;div class="arrow-right"&gt;&lt;/div&gt;&lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class="rowcolor"&gt;&lt;span class="tcat"&gt;Success: &lt;/span&gt;{{success}} | {{skill0}} | {{skill1}} | {{skill2}} | {{skill3}}&lt;/div&gt; &nbsp; &nbsp; &lt;/div&gt; &lt;/rolltemplate&gt; &lt;rolltemplate class="sheet-rolltemplate-skill4"&gt; &nbsp; &nbsp; &lt;div class="container"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div&gt;&lt;h1&gt;{{name}}&lt;/h1&gt;&lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class="arrow-container"&gt;&lt;div class="arrow-right"&gt;&lt;/div&gt;&lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class="rowcolor"&gt;&lt;span class="tcat"&gt;Success: &lt;/span&gt;{{success}} | {{skill0}} | {{skill1}} | {{skill2}} | {{skill3}} | {{skill4}}&lt;/div&gt; &nbsp; &nbsp; &lt;/div&gt; &lt;/rolltemplate&gt;
1615886277
Paul V.
Pro
Sheet Author
Compendium Curator
or i've found this also works /roll {6d10+6}&gt;12 rolls 6d10 add 6 to each rolls and compares the total to 12
1615888612
Paul V.
Pro
Sheet Author
Compendium Curator
ok does anyone know why&nbsp; /roll {3d10+6}&gt;10&nbsp; gives:&nbsp; rolling {3d10+6}&gt;10 { ( 4 + 6 + 7 ) +6 } = 3 Successes but using&nbsp; {3d10+6}&gt;10 e.g.&nbsp; &lt;button type="roll" value="&amp;{template:skill} {{name=acrobatics}}{{success={1d10+6}&gt;10}}{{skill={3d10+6}&gt;10}}"&gt;ACROBATICS&lt;/button&gt; in a roll template just gives: acrobatics Success:&nbsp; {1d10+6}&gt;10 | Skill: {3d10+6}&gt;10
1615902033
Paul V.
Pro
Sheet Author
Compendium Curator
ok worked it out &lt;button type="roll"value="&amp;{template:skill} {{name=athletics}}{{success=[[{1d10+@{athletics_total}}&gt;?{target|10}]]}}{{skill=[[{@{athletics+1}d10+@{athletics_total}}&gt;?{target|10}]]}}"&gt;ATHLETICS&lt;/button&gt;