
Hi hi, For the past year I've been trying to make my own character sheet for a home-brew system. On the home stretch now but as I'm ironing out the kinks I'm finding new problems. This time its as follows, is there a way to reference a repeating section and sum them up in a separate area of the character sheet? <div class="sheet-table"> <fieldset class="repeating_item"> <span class="sheet-table-data-center" style="width:40%;"><input title="repeating_item_$X_item-name" type="text" name="attr_item-name"></span> <span class="sheet-table-data-center" style="width:5%;"><input title="repeating_item_$X_item-qty" step="0.1" type="number" name="attr_item-qty" value="0"></span> <span class="sheet-table-data-center" style="width:5%;"><input title="repeating_item_$X_item-bulk" step="0.1" type="number" name="attr_item-bulk" value="0"></span> <span class="sheet-table-data-center" style="width:5%;"><input title="repeating_item_$X_item-total" step="0.1" type="number" name="attr_ item-total" value="(@{item-bulk} * @{item-qty}) " disabled></span> <span class="sheet-table-data-center" style="width:50%;"><input title="repeating_item_$X_item-description" type="text" name="attr_item-description"></span> </fieldset> </div> In the example above I'm trying to sum up all the item's weights all together within the following: <span class="sheet-table-data-center"><input style="width:100%;" title="carried-total" type="number" step="0.1" name="attr_carried-total" value="@{item-total} " disabled></span> Usually I'd think this'd work but it just ends up in a blank box. Bonus Question answered by GiGs, Thank you! Bonus question, I have multiple rolls that look kinda like this: <span class="sheet-table-data-center"><button style="font-size:100%;" title="Archery-Check" type="roll" value="&{template:default} {{name=@{character_name}'s Archery Check}} {{Check=[[1d20cs=20cf=1 + @{Archery}]]}}" name="roll_Archery-Check"></button></span> but when you hover over the result with your cursor in chat it shows this: Rolling 1d20cs=20cf=1 + floor(0 / 10 + floor((25 + 0 + 0 + 0 + 0 + 0 + 0 + 0) / 10) /2 + floor((25 + 0 + 0 + 0 + 0 + 0 + 0 + 0) / 10) /2 + 0 + 0 + 0 + 0 + 0) = (4)+floor(0/10+floor((25+0+0+0+0+0+0+0)/10)/2+floor((25+0+0+0+0+0+0+0)/10)/2+0+0+0+0+0) Is there any way to clean this up or am I stuck with it cause of sloppy code? Bonus bonus question! (Cause I found it after I posted this and I don't wanna clog up the forums with another post) PT.1, Is there a way to make a critical damage roll only show up if you actually roll a crit? Currently no matter what I roll the crit damage always shows up and from what I've found roll20 doesn't allow if/then statements. This is what the weapons section currently looks like: <div class="sheet-pc-weapons"> <div class="sheet-table"> <span class="sheet-table-name">Weapons</span> <fieldset class="repeating_pc-weapon"> <div class="sheet-table"> <div class="sheet-table-row1"> <span class="sheet-table-data sheet-center" style="width:5%;"><button type="roll" name="roll_roll" title="%{repeating_pc-weapon_$X_roll}" value="@{macro-text}"></button></span> <span class="sheet-table-data sheet-center sheet-small-label" style="width:20%;"><input type="text" name="attr_pc-weapon-name" title="@{repeating_pc-weapon_$X_pc-weapon-name}" placeholder="Name" ><br>Name</span> <span class="sheet-table-data sheet-center sheet-small-label" style="width:10%;"> <select title="@{repeating_pc-weapon_$X_pc-skill-type}" name="attr_pc-skill-type"> <option value="0" >None</option> <option value="1d20 + @{One-handed}" >One-Handed</option> <option value="1d20 + @{Two-handed}" >Two-Handed</option> <option value="1d20 + @{Archery}" >Archery</option> <option value="1d20 + @{Pugilism}" >Pugilism</option> </select> <br>Attack Type </span> <span class="sheet-table-data sheet-center sheet-small-label" style="width:15%;"><input type="number" name="attr_pc-damage" title="@{repeating_pc-weapon_$X_pc-damage}" placeholder="Damage" value="0" ><br>Damage</span> <span class="sheet-table-data sheet-center sheet-small-label" style="width:15%;"><input type="number" name="attr_pc-damage-mod" title="@{repeating_pc-weapon_$X_pc-damage-mod}" placeholder="Damage Modifiers" value="0" ><br>Damage Mods</span> </div> </div> <div class="sheet-table"> <div class="sheet-table-row1"> <span class="sheet-table-data sheet-center sheet-small-label" style="width:15%;"><input type="text" name="attr_pc-weapon-critical" title="@{repeating_pc-weapon_$X_pc-weapon-critical}" placeholder="none"><br>Crit Multiplier</span> <span class="sheet-table-data sheet-center sheet-small-label" style="width:5%;"><input type="number" name="attr_pc-weapon-range" title="@{repeating_pc-weapon_$X_pc-weapon-range}" min="0" value="0" ><br>Range</span> <span class="sheet-table-data sheet-center sheet-small-label" style="width:15%;"><input type="text" name="attr_pc-weapon-type" title="@{repeating_pc-weapon_$X_pc-weapon-type}" placeholder="Damage Type" ><br>Damage Type</span> <span class="sheet-table-data sheet-center sheet-small-label" style="width:5%;"><input type="number" name="attr_pc-weapon-ammo" title="@{repeating_pc-weapon_$X_pc-weapon-ammo}" value="0" ><br>Ammo</span> <span class="sheet-table-data sheet-center sheet-small-label" style="width:48%;"><input type="text" name="attr_pc-weapon-notes" title="@{repeating_pc-weapon_$X_pc-weapon-notes}" placeholder="Attack Notes" ><br>Notes</span> </div> </div> PT.2, for that matter, is there any way I can just make the dropdown use the roll from One-handed, Two-handed, Archery or Pugilism? The rolls look like this: <span class="sheet-table-row-name"><button class="sheet-text-button" title="DEX-Check" type="roll" name="roll_DEX-Check" value="&{template:default} {{name=@{character_name}'s Dexterity check}} {{check=[[@{DEX-mod} + 1d20cs=20cf=1]]}}"></button></span> If I try to use @{One-handed-Check} in the drop down it tells me there's "no One-handed-Check attribute". I'm probably overlooking something super simple but I never see it before asking for help, thank you in advance to anyone willing to help!