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 .
×

Need advice for creating sheet for obscure ttrpg called Dark Earth

making a custom sheet for an rpg i got my hands on and im hitting some snags. first, the system itself. Its a d6 dice pool system where 1-3 is a fail, 4-5 is a success, and 6 counts as two successes. In terms of characteristics and skills, you have a "parent" skill with multiple "child" skills that are directly affected by the former. For example, if I rolled stealth my dice pool would be 7 dice. Rolling dodge would be 6 dice. Rolling jump would be 5 dice. Anyway, im having trouble making a script/macro that does as I described. I got the dice rolling down for individual skills but im having difficulty making the child skills add the parent skill value without getting an error message. Heres the script for the first set of skills. The first one is the parent while the other 3 are its children. Current version has child skills set up to only roll its own skill value.    <div name="char&talents" class="sheet-section">     <div class="sheet-2colrow"> <div name="Attributes" class="sheet-col" style="display:inline-block"> <h2 style="text-align: Left;">CHARACTERISTICS & TALENTS</h2> <div name="Agility" class="sheet-bold sheet-border">         <button class="sheet-d6-dice" type="roll" value="&{template:default} {{name=**Agility** (@{character_name})}} {{Amount of Successes:=[[?{Agility|@{agilitypip}}d6>6f<3 + ?{Agility|@{agilitypip}} ]] }}" >AGILITY</button><input type="number" name="attr_agilitypip" class="sheet-smallnumber sheet-shortnumber" min="0" max="10" value="0" style="font-weight:bold;"/><br>             <button class="sheet-d6-dice" type="roll" value="&{template:default} {{name=**Stealth** (@{character_name})}} {{Amount of Successes:=[[?{Stealth|@{stealthpip}}d6>6f<3 + ?{Stealth|@{stealthpip}} ]] }}" >Stealth</button><input type="number" name="attr_stealthpip" class="sheet-smallnumber sheet-shortnumber" min="0" max="10" value="0"/><br>             <button class="sheet-d6-dice" type="roll" value="&{template:default} {{name=**Dodge** (@{character_name})}} {{Amount of Successes:=[[?{Dodge|@{dodgepip}}d6>6f<3 + ?{Dodge|@{dodgepip}} ]] }}" >Dodge</button><input type="number" name="attr_dodgepip" class="sheet-smallnumber sheet-shortnumber" min="0" max="10" value="0"/><br>             <button class="sheet-d6-dice" type="roll" value="&{template:default} {{name=**Jump** (@{character_name})}} {{Amount of Successes:=[[?{Jump|@{jumppip}}d6>6f<3 + ?{Jump|@{jumppip}} ]] }}" >Jump</button><input type="number" name="attr_jumppip" class="sheet-smallnumber sheet-shortnumber" min="0" max="10" value="0"/><br>       </div>       <br><br><br>       <br><br><br>
1776459850

Edited 1776459911
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
You just need to wrap the math for adding the pips together in another set of inline roll brackets. If I'm understanding your macro code correctly, it would look like this: <button class="sheet-d6-dice" type="roll"  value="&{template:default} {{name=**Stealth** (@{character_name})}} {{Amount of Successes:=[[[[@{stealthpip}+@{agilitypip}]]d6>6f<3 +  [[@{stealthpip}+@{agilitypip}]]  ]] }}">Stealth</button> I swapped out the queries you had for just doing the math. also, one code critique; I would not use <br> as a formatting tool. You're better off using css to specify how much padding/margin you want around an item instead of hardcoding breaks using html entities.