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

Final stretch

1650781229

Edited 1650783165
okay so my sheet is getting to the point where I am happy to start play with it but there are a few things remaining, the code for each specific will be in a reply so that confusion is mitigated
1650781689

Edited 1650871650
with the ship floors there's three things I'd like to do: I'd like to be able to fill out the cells of the table with one of 12 images be able to rotate this images as needed with 90 o &nbsp;intervals when the ship recieves damage show that on a given active cell (has a image), this has it's own images HTML: &lt;div class="ship-floor-1"&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt; CSS: div.ship-floor-1 { height: 642px; width: 642px; background-image: url("<a href="https://i.imgur.com/ez6Aliz.png" rel="nofollow">https://i.imgur.com/ez6Aliz.png</a>"); background-repeat: no-repeat; background-size: cover; display: grid; grid-template-columns: 27px repeat(3, 89px) 90px repeat(3, 89px); grid-template-rows: 27px repeat(3, 89px) 90px repeat(3, 89px); border-collapse: collapse; } div.ship-floor-1 span { border: 1px solid black; } Images: Damage token:
there also one final element I'd like to add to the tabs on the sheet while I'd like Ship power to always be a tab I'd like to be able to limit the ammount of ship floors there are on a given vehicle e.g. on a 2 floor ship, floors 3, 4, &amp; 5 do not show at all, not even there tabs HTML: &lt;input type="hidden" class="sheet-tabstoggle" name="attr_sheet_tab" value="ship-power"/&gt; &lt;nav class="tab"&gt; &lt;button type="action" name="act_ship-power" class='nav-button nav-button--ship-power' &gt;Ship Power&lt;/button&gt; &lt;button type="action" name="act_ship-floor-1" class='nav-button nav-button--ship-floor-1' &gt;Floor 1&lt;/button&gt; &lt;button type="action" name="act_ship-floor-2" class='nav-button nav-button--ship-floor-2' &gt;Floor 2&lt;/button&gt; &lt;button type="action" name="act_ship-floor-3" class='nav-button nav-button--ship-floor-3' &gt;Floor 3&lt;/button&gt; &lt;button type="action" name="act_ship-floor-4" class='nav-button nav-button--ship-floor-4' &gt;Floor 4&lt;/button&gt; &lt;button type="action" name="act_ship-floor-5" class='nav-button nav-button--ship-floor-5' &gt;Floor 5&lt;/button&gt; &lt;/nav&gt; &lt;script type="text/worker"&gt; const navigateSheet = function(event){ const target = event.triggerName.replace(/clicked:/,'');//Parse out our actual target console.log(target); $20('.navigable-section,.nav-button').removeClass('active'); $20(`.navigable-section--${target},.nav-button--${target}`).addClass('active'); setAttrs({sheet_tab:target},{silent:true}); }; on('sheet:opened',()=&gt;{// getAttrs(['sheet_tab'],(attributes)=&gt;{ navigateSheet({trigerName:attributes.sheet_tab}); }); }); const buttonlist = ["ship-power","ship-floor-1","ship-floor-2","ship-floor-3","ship-floor-4","ship-floor-5"]; buttonlist.forEach(button =&gt; { on(`clicked:${button}`, navigateSheet); }); &lt;/script&gt; CSS: .navigable-section:not(.active) { display: none; } .nav-button:not(.active) { opacity: 0%; } .nav-button:hover { opacity: 100%; } div.tabs { position: relative; z-index: 1; opacity: 60%; }
1650783118

Edited 1650783136
finally there is intergration of the two sheets, making it so that when I hit new character I get asked if this is a vehicle or a person, and get the appropreate sheet, there should als obe a level of interaction between sheets as a element in the vehicle sheet impacts the personal sheet, mainly that of OOC as a negative value each of the sheets I'm using have a holding table around them being: &lt;div class="vehicle-sheet"&gt; &lt;!--holding table--&gt; and &lt;div class="character-sheet"&gt; &lt;!--holding table--&gt; the part that needs to interact between the two is the Ship's OOC value &lt;div class="OOC"&gt;&lt;!--&gt;O.O.C.&lt;--&gt; &lt;input type="radio" id="4" name="attr_ship_ooc" value="4"&gt;&lt;br&gt; &lt;input type="radio" id="3" name="attr_ship_ooc" value="3"&gt;&lt;br&gt; &lt;input type="radio" id="2" name="attr_ship_ooc" value="2"&gt;&lt;br&gt; &lt;input type="radio" id="1" name="attr_ship_ooc" value="1"&gt;&lt;br&gt; &lt;input type="radio" id="0" name="attr_ship_ooc" value="0"&gt; &lt;/div&gt; with each of these rolls &lt;div class="skills"&gt; &lt;!--skills--&gt; &lt;h3&gt;Skills&lt;/h3&gt; &lt;h3&gt;Level&lt;/h3&gt; &lt;h3 class="roll"&gt;Roll&lt;/h3&gt; &lt;span&gt;Athletics&lt;/span&gt; &lt;input type="number" name="attr_char_ath" value="0" /&gt; &lt;button type='roll' name='roll_Athletics_check' value='[[2d6+@{char_ath}+?{Sit Mod|0}]]'&gt;&lt;/button&gt; &lt;span&gt;Combat&lt;/span&gt; &lt;input type="number" name="attr_char_com" value="0" /&gt; &lt;button type='roll' name='roll_Combat_check' value='[[2d6+@{char_com}+?{Sit Mod|0}]]'&gt;&lt;/button&gt; &lt;span&gt;Engine&lt;/span&gt; &lt;input type="number" name="attr_char_eng" value="0" /&gt; &lt;button type='roll' name='roll_Engineering_check' value='[[2d6+@{char_eng}+?{Sit Mod|0}]]'&gt;&lt;/button&gt; &lt;span&gt;Piloting&lt;/span&gt; &lt;input type="number" name="attr_char_pil" value="0" /&gt; &lt;button type='roll' name='roll_Pilot_check' value='[[2d6+@{char_pil}+?{Sit Mod|0}]]'&gt;&lt;/button&gt; &lt;span&gt;Science&lt;/span&gt; &lt;input type="number" name="attr_char_sci" value="0" /&gt; &lt;button type='roll' name='roll_Science_check' value='[[2d6+@{char_sci}+?{Sit Mod|0}]]'&gt;&lt;/button&gt; &lt;/div&gt; I know that @{ship_ooc} is going to be invloved at some point but I don't know how to say you are standing on ship X, used it's OOC wihtout having to manually track that
oh yes, one other bit, I'd like some way to tack ship damage, esspecially in relation to the hull check required HTML: &lt;div class="ship-hull"&gt; &lt;!--ship-hull--&gt; &lt;span&gt;DMG&lt;/span&gt; &lt;span&gt;Hull Check&lt;/span&gt; &lt;span&gt;1&lt;/span&gt; &lt;span&gt;1&lt;/span&gt; &lt;span&gt;3&lt;/span&gt; &lt;span&gt;2&lt;/span&gt; &lt;span&gt;6&lt;/span&gt; &lt;span&gt;3&lt;/span&gt; &lt;span&gt;10&lt;/span&gt; &lt;span&gt;4&lt;/span&gt; &lt;span&gt;15&lt;/span&gt; &lt;span&gt;5&lt;/span&gt; &lt;span&gt;21&lt;/span&gt; &lt;span&gt;6&lt;/span&gt; &lt;span&gt;28&lt;/span&gt; &lt;span&gt;7&lt;/span&gt; &lt;span&gt;36&lt;/span&gt; &lt;span&gt;8&lt;/span&gt; &lt;span&gt;45&lt;/span&gt; &lt;span&gt;9&lt;/span&gt; &lt;span&gt;55&lt;/span&gt; &lt;span&gt;10&lt;/span&gt; &lt;span&gt;66&lt;/span&gt; &lt;span&gt;11&lt;/span&gt; &lt;span&gt;78&lt;/span&gt; &lt;span&gt;12&lt;/span&gt; &lt;span&gt;91&lt;/span&gt; &lt;span&gt;13&lt;/span&gt; &lt;span&gt;105&lt;/span&gt; &lt;span&gt;14&lt;/span&gt; &lt;span&gt;120&lt;/span&gt; &lt;span&gt;15&lt;/span&gt; &lt;span&gt;136&lt;/span&gt; &lt;span&gt;16&lt;/span&gt; &lt;span&gt;153&lt;/span&gt; &lt;span&gt;17&lt;/span&gt; &lt;span&gt;171&lt;/span&gt; &lt;span&gt;18&lt;/span&gt; &lt;span&gt;190&lt;/span&gt; &lt;span&gt;19&lt;/span&gt; &lt;span&gt;210&lt;/span&gt; &lt;span&gt;20&lt;/span&gt; &lt;span&gt;131&lt;/span&gt; &lt;span&gt;21&lt;/span&gt; &lt;span&gt;253&lt;/span&gt; &lt;span&gt;22&lt;/span&gt; &lt;/div&gt; CSS: div.ship-hull { height: 642px; width: 142px; background-image: url("<a href="https://i.imgur.com/HdRcuDF.png" rel="nofollow">https://i.imgur.com/HdRcuDF.png</a>"); background-repeat: no-repeat; background-size: cover; display: grid; grid-template-columns: 56px 89px; grid-template-rows: repeat(23, 1fr) border-collapse: collapse; } div.ship-hull span { display: none; text-align: center; }
1650892803

Edited 1650939335
Stormborn said: oh yes, one other bit, I'd like some way to tack ship damage, esspecially in relation to the hull check required HTML: &lt;div class="ship-hull"&gt; &lt;!--ship-hull--&gt; &lt;span&gt;DMG&lt;/span&gt; &lt;span&gt;Hull Check&lt;/span&gt; &lt;span&gt;1&lt;/span&gt; &lt;span&gt;1&lt;/span&gt; &lt;span&gt;3&lt;/span&gt; &lt;span&gt;2&lt;/span&gt; &lt;span&gt;6&lt;/span&gt; &lt;span&gt;3&lt;/span&gt; &lt;span&gt;10&lt;/span&gt; &lt;span&gt;4&lt;/span&gt; &lt;span&gt;15&lt;/span&gt; &lt;span&gt;5&lt;/span&gt; &lt;span&gt;21&lt;/span&gt; &lt;span&gt;6&lt;/span&gt; &lt;span&gt;28&lt;/span&gt; &lt;span&gt;7&lt;/span&gt; &lt;span&gt;36&lt;/span&gt; &lt;span&gt;8&lt;/span&gt; &lt;span&gt;45&lt;/span&gt; &lt;span&gt;9&lt;/span&gt; &lt;span&gt;55&lt;/span&gt; &lt;span&gt;10&lt;/span&gt; &lt;span&gt;66&lt;/span&gt; &lt;span&gt;11&lt;/span&gt; &lt;span&gt;78&lt;/span&gt; &lt;span&gt;12&lt;/span&gt; &lt;span&gt;91&lt;/span&gt; &lt;span&gt;13&lt;/span&gt; &lt;span&gt;105&lt;/span&gt; &lt;span&gt;14&lt;/span&gt; &lt;span&gt;120&lt;/span&gt; &lt;span&gt;15&lt;/span&gt; &lt;span&gt;136&lt;/span&gt; &lt;span&gt;16&lt;/span&gt; &lt;span&gt;153&lt;/span&gt; &lt;span&gt;17&lt;/span&gt; &lt;span&gt;171&lt;/span&gt; &lt;span&gt;18&lt;/span&gt; &lt;span&gt;190&lt;/span&gt; &lt;span&gt;19&lt;/span&gt; &lt;span&gt;210&lt;/span&gt; &lt;span&gt;20&lt;/span&gt; &lt;span&gt;131&lt;/span&gt; &lt;span&gt;21&lt;/span&gt; &lt;span&gt;253&lt;/span&gt; &lt;span&gt;22&lt;/span&gt; &lt;/div&gt; CSS: div.ship-hull { height: 642px; width: 142px; background-image: url("<a href="https://i.imgur.com/HdRcuDF.png" rel="nofollow">https://i.imgur.com/HdRcuDF.png</a>"); background-repeat: no-repeat; background-size: cover; display: grid; grid-template-columns: 56px 89px; grid-template-rows: repeat(23, 1fr) border-collapse: collapse; } div.ship-hull span { display: none; text-align: center; } how would I manipulate this into working? where X is the current damage to the ship, and Y is the number in the first collomn function check_numbers(x, y) { if (x &gt;= y) { return true; } else { return false; } } would I need to maniplulate this any further to so that the colomn value is returning true, so that I can manipulate them with CSS