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

Help with including/displaying additional data when a drop down is used

1693754688
Chris Jones
Pro
Sheet Author
Afternoon all I've a werewolf character sheet i'm using whereby when users shapechange, they get certain bonuses, but there's also a lot of valuable data to show off. I originally used a number of dropdowns each with the same attribute, however this has caused a problem because the "option value" tag used by a number of the options is the same: <option value="0" selected>Homid</option> <option value="2">Glabro</option> <option value="4">Crinos</option> <option value="2">Hispo</option> <option value="2">Lupus</option> </select> This is causing everything to get confused, and my other drop downs don't know what data to use (with the exception of 0 and 4, which both work as designed). with the rest of the code, it looks like this: The "form bonus" section works fine, and those skill dots get picked up and used in my rolls as they should - its the other boxes (Regeneration amount, Delirium etc) that get messed up. Looking around online, I've seen some hints suggest I could include multiple fields in my initial drop down and use the data- tag with them, however I don't know how I get this data to display. Ultimatly I'm open to any option, so all suggestions welcome! My full code for this section is as follows: <tr>              <td colspan="6" align="center">                     <h2 class="sheet-auto-style1 sheet-header">SHAPESHIFTING</h2>       <div class="sheet-row" align="center" style="display: inline-block;">                  <h4 style="text-align: center; width:120px" ">Form</h4>                         <select name="attr_formbonus" style="width:80px; text-align: center; font-size: 14px; font-family: Shadows Into Light; color:maroon; font-weight: bold; display:inline-block"> <option value="0" selected>Homid</option> <option value="2">Glabro</option> <option value="4">Crinos</option> <option value="2">Hispo</option> <option value="2">Lupus</option> </select>                     </td> </div>     <div class="sheet-row" align="center" style="display: inline-block;"> <h4 style="text-align: center; width:120px" ">Form Bonus</h4>                         <input type="radio" class="sheet-defaultRadioBox zero" name="attr_formbonus" value="0" checked="checked" />                         <span></span>                         <input type="radio" class="sheet-defaultRadioBox" name="attr_formbonus" value="1" />                         <span></span>                         <input type="radio" class="sheet-defaultRadioBox" name="attr_formbonus" value="2" />                         <span></span>                         <input type="radio" class="sheet-defaultRadioBox" name="attr_formbonus" value="3" />                         <span></span>                         <input type="radio" class="sheet-defaultRadioBox" name="attr_formbonus" value="4" />                         <span></span>                         <input type="radio" class="sheet-defaultRadioBox" name="attr_formbonus" value="5" />                         <span></span> </td> </div>   <div class="sheet-row" align="center" style="display: inline-block;"> <h4 style="text-align: center; width:140px" ">Regeneration Amount</h4> <select name="attr_formbonus" style="width:140px; display:inline-block"> <option value="0" selected>None</option> <option value="2">⬤ Superficial</option> <option value="4">⬤⬤ Superficial</option> <option value="2">⬤ Superficial</option> <option value="2">None</option> </select>                     </td> </div> <div class="sheet-row" align="center" style="display: inline-block;"> <h4 style="text-align: center; width:115px" ">Delirium</h4> <select name="attr_formbonus" style="width:60px; display:inline-block"> <option value="0" selected>No</option> <option value="2">No</option> <option value="4">Yes</option> <option value="2">No</option> <option value="2">No</option> </select>                     </td> </div> <div class="sheet-row" align="center" style="display: inline-block;"> <h4 style="text-align: center; width:106px" ">Cost</h4> <select name="attr_formbonus" style="width:140px; display:inline-block"> <option value="0" selected>None</option> <option value="2">⬤ Rage Check</option> <option value="4">⬤⬤ Rage Checks</option> <option value="2">⬤ Rage Check</option> <option value="2">None</option> </select> </td> </div> <div class="sheet-row" align="center" style="display: inline-block;"> <h4 style="text-align: center; width:106px" ">Frenzy Difficulty</h4> <select name="attr_formbonus" style="width:40px; display:inline-block"> <option value="0" selected>2</option> <option value="2">2</option> <option value="4">3</option> <option value="2">2</option> <option value="2">2</option> </select>                     </td> </div>                 </td>                 </td>             </tr> Cheers Chris
1693764095

Edited 1693764488
vÍnce
Pro
Sheet Author
An attribute can only have one value at a time.  I think you need to make a unique attribute for each field and handle them individually. ie @{form}, @{form_bonus}, @{form_regeneration}, @{form_delerium}, etc. Better yet use a sheetworker script that detects the initial dropdown selector change (@{form}) and set all the related attribute values appropriately.
1693764833
Chris Jones
Pro
Sheet Author
Yeah, I figured I'd need as much - however the ability to create a workable sheet worker exceeds my capabilities.  Editing the drop down attributes is easy enough for me, is just the ability to have them all change based on the first drop down changing 
1693765068

Edited 1693765087
vÍnce
Pro
Sheet Author
GiGs gives a great example of doing something similar with sheetworker here; <a href="https://app.roll20.net/forum/post/6351575/multiple-values-for-character-sheet" rel="nofollow">https://app.roll20.net/forum/post/6351575/multiple-values-for-character-sheet</a>
1693769613
Chris Jones
Pro
Sheet Author
Thanks, thats a great example and i've followed it (AFAIK correctly), however it isn't doing anything, so I'm sure I've missed something: My attributes are all renamed as following &lt;tr&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td colspan="6" align="center"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h2 class="sheet-auto-style1 sheet-header"&gt;SHAPESHIFTING&lt;/h2&gt; &nbsp; &nbsp; &nbsp; &lt;div class="sheet-row" align="center" style="display: inline-block;"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;h4 style="text-align: center; width:120px" "&gt;Form&lt;/h4&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;select name="attr_form" style="width:80px; text-align: center; font-size: 14px; font-family: Shadows Into Light; color:maroon; font-weight: bold; display:inline-block"&gt; &lt;option value="0" &gt;&lt;/option&gt; &lt;option value="homid" selected&gt;Homid&lt;/option&gt; &lt;option value="glabro"&gt;Glabro&lt;/option&gt; &lt;option value="crinos"&gt;Crinos&lt;/option&gt; &lt;option value="hispo"&gt;Hispo&lt;/option&gt; &lt;option value="lupus"&gt;Lupus&lt;/option&gt; &lt;/select&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt; &lt;/div&gt; &nbsp; &nbsp; &lt;div class="sheet-row" align="center" style="display: inline-block;"&gt; &lt;h4 style="text-align: center; width:120px" "&gt;Form Bonus&lt;/h4&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="radio" class="sheet-defaultRadioBox zero" name="attr_formbonus" value="0" checked="checked" /&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span&gt;&lt;/span&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="radio" class="sheet-defaultRadioBox" name="attr_formbonus" value="1" /&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span&gt;&lt;/span&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="radio" class="sheet-defaultRadioBox" name="attr_formbonus" value="2" /&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span&gt;&lt;/span&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="radio" class="sheet-defaultRadioBox" name="attr_formbonus" value="3" /&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span&gt;&lt;/span&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="radio" class="sheet-defaultRadioBox" name="attr_formbonus" value="4" /&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span&gt;&lt;/span&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="radio" class="sheet-defaultRadioBox" name="attr_formbonus" value="5" /&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span&gt;&lt;/span&gt; &lt;/td&gt; &lt;/div&gt; &nbsp; &lt;div class="sheet-row" align="center" style="display: inline-block;"&gt; &lt;h4 style="text-align: center; width:140px" "&gt;Regeneration Amount&lt;/h4&gt; &lt;select name="attr_formregeneration" style="width:140px; display:inline-block"&gt; &lt;option value="0" &gt;&lt;/option&gt; &lt;option value="1" selected&gt;None&lt;/option&gt; &lt;option value="2"&gt;⬤ Superficial&lt;/option&gt; &lt;option value="3"&gt;⬤⬤ Superficial&lt;/option&gt; &lt;option value="4"&gt;⬤ Superficial&lt;/option&gt; &lt;option value="5"&gt;None&lt;/option&gt; &lt;/select&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt; &lt;/div&gt; &lt;div class="sheet-row" align="center" style="display: inline-block;"&gt; &lt;h4 style="text-align: center; width:115px" "&gt;Delirium&lt;/h4&gt; &lt;select name="attr_formdelirium" style="width:60px; display:inline-block"&gt; &lt;option value="0" &gt;&lt;/option&gt; &lt;option value="1" selected&gt;No&lt;/option&gt; &lt;option value="2"&gt;No&lt;/option&gt; &lt;option value="3"&gt;Yes&lt;/option&gt; &lt;option value="4"&gt;No&lt;/option&gt; &lt;option value="5"&gt;No&lt;/option&gt; &lt;/select&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt; &lt;/div&gt; &lt;div class="sheet-row" align="center" style="display: inline-block;"&gt; &lt;h4 style="text-align: center; width:106px" "&gt;Cost&lt;/h4&gt; &lt;select name="attr_formcost" style="width:140px; display:inline-block"&gt; &lt;option value="0" &gt;&lt;/option&gt; &lt;option value="1" selected&gt;None&lt;/option&gt; &lt;option value="2"&gt;⬤ Rage Check&lt;/option&gt; &lt;option value="3"&gt;⬤⬤ Rage Checks&lt;/option&gt; &lt;option value="4"&gt;⬤ Rage Check&lt;/option&gt; &lt;option value="5"&gt;None&lt;/option&gt; &lt;/select&gt; &lt;/td&gt; &lt;/div&gt; &lt;div class="sheet-row" align="center" style="display: inline-block;"&gt; &lt;h4 style="text-align: center; width:106px" "&gt;Frenzy Difficulty&lt;/h4&gt; &lt;select name="attr_formfrenzy" style="width:40px; display:inline-block"&gt; &lt;option value="0" &gt;&lt;/option&gt; &lt;option value="1" selected&gt;2&lt;/option&gt; &lt;option value="2"&gt;2&lt;/option&gt; &lt;option value="3"&gt;3&lt;/option&gt; &lt;option value="4"&gt;2&lt;/option&gt; &lt;option value="5"&gt;2&lt;/option&gt; &lt;/select&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt; &lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td colspan="6" class="auto-style1" valign="top"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style="text-align: center"&gt; &lt;h4 style="text-align: center; width:820px" "&gt;Form Abilities&lt;/h4&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;select name="attr_formability" style="width:800px; display:inline-block"&gt; &nbsp; &lt;option value="0" &gt;&lt;/option&gt; &lt;option value="1" selected&gt;Able to touch silver without suffering damage.&lt;/option&gt; &lt;option value="2"&gt;2 dice bonus to all Physical tests, can regenerate one Health level with one Rage check&lt;/option&gt; &lt;option value="3"&gt;+3 Claw damage, +1 Aggravated bite damage, Must spend WP to avoid Frenzy if they didn't kill in previous turn, Upon leaving crinos form Rage is reduced to 1, minimal communication, +4 Health levels.&lt;/option&gt; &lt;option value="4"&gt;+2 dice bonus to all non-Stealth Physical tests, +1 Aggravated bite damage.&lt;/option&gt; &lt;option value="5"&gt;+2 dice bonus to certain Skill rolls, cannot speak, able to touch silver without suffering damage&lt;/option&gt; &lt;/select&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt; &lt;/div&gt; and my sheetworker is like this &lt;script type="text/worker"&gt; on("change:form", function () { &nbsp; &nbsp; getAttrs(["form"], function (values) { &nbsp; &nbsp; &nbsp; &nbsp; let form = values.form; &nbsp; &nbsp; &nbsp; &nbsp; let formregeneration = 0, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; formbonus = 0, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; formdelirium = 0, formcost = homid, formdability = 0, formfrenzy = 0; &nbsp; &nbsp; &nbsp; &nbsp; switch (form) { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case "homid": &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; formregeneration = 1; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; formbonus = 0; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; formdelirium = 1; formcost = 1; formdability = 1; formfrenzy = 1; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case "glabro": &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; formregeneration = 2; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; formbonus = 2; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; formdelirium = 2; formcost = 2; formdability = 2; formfrenzy = 2; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break; case "crinos": &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; formregeneration = 3; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; formbonus = 4; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; formdelirium = 3; formcost = 3; formdability = 3; formfrenzy = 3; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break; case "crinos": &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; formregeneration = 4; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; formbonus = 2; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; formdelirium = 4; formcost = 4; formdability = 4; formfrenzy = 4; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break; case "lupus": &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; formregeneration = 5; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; formbonus = 2; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; formdelirium = 5; formcost = 5; formdability = 5; formfrenzy = 5; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break; &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp; &nbsp; &nbsp; &nbsp; setAttrs({ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "formbonus": formbonus, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "formregeneration": formregeneration, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "formcost": formcost, "formdelirium": formdelirium, "formability": formability, "formfrenzy": formfrenzy &nbsp; &nbsp; &nbsp; &nbsp; }) &nbsp; &nbsp; }); }); &lt;/script&gt; What have I missed?
1693772547

Edited 1693773287
vÍnce
Pro
Sheet Author
Does this work? you have some malformed inline css that I removed. ( avoid inline styles ) In the sheetworker you had a typo for "formdability", and assigning a value to formcost = homid needs to be formcost = "homid", since it's a text value.&nbsp; You can use the browsers console window to see if there are any errors in your sheetworkers to help troubleshoot.&nbsp; &lt;div&gt; &lt;tr&gt; &lt;td colspan="6" align="center"&gt; &lt;h2 class="sheet-auto-style1 sheet-header"&gt;SHAPESHIFTING&lt;/h2&gt; &lt;div class="sheet-row" align="center" style="display: inline-block;"&gt; &lt;h4 style="text-align: center; width:120px;"&gt;Form&lt;/h4&gt; &lt;select name="attr_form" style="width:80px; text-align: center; font-size: 14px; font-family: Shadows Into Light; color:maroon; font-weight: bold; display:inline-block"&gt; &lt;option value="0"&gt;&lt;/option&gt; &lt;option value="homid" selected&gt;Homid&lt;/option&gt; &lt;option value="glabro"&gt;Glabro&lt;/option&gt; &lt;option value="crinos"&gt;Crinos&lt;/option&gt; &lt;option value="hispo"&gt;Hispo&lt;/option&gt; &lt;option value="lupus"&gt;Lupus&lt;/option&gt; &lt;/select&gt; &lt;/td&gt; &lt;/div&gt; &lt;div class="sheet-row" align="center" style="display: inline-block;"&gt; &lt;h4 style="text-align: center; width:120px;"&gt;Form Bonus&lt;/h4&gt; &lt;input type="radio" class="sheet-defaultRadioBox zero" name="attr_formbonus" value="0" checked="checked" /&gt; &lt;span&gt;&lt;/span&gt; &lt;input type="radio" class="sheet-defaultRadioBox" name="attr_formbonus" value="1" /&gt; &lt;span&gt;&lt;/span&gt; &lt;input type="radio" class="sheet-defaultRadioBox" name="attr_formbonus" value="2" /&gt; &lt;span&gt;&lt;/span&gt; &lt;input type="radio" class="sheet-defaultRadioBox" name="attr_formbonus" value="3" /&gt; &lt;span&gt;&lt;/span&gt; &lt;input type="radio" class="sheet-defaultRadioBox" name="attr_formbonus" value="4" /&gt; &lt;span&gt;&lt;/span&gt; &lt;input type="radio" class="sheet-defaultRadioBox" name="attr_formbonus" value="5" /&gt; &lt;span&gt;&lt;/span&gt; &lt;/td&gt; &lt;/div&gt; &lt;div class="sheet-row" align="center" style="display: inline-block;"&gt; &lt;h4 style="text-align: center; width:140px;"&gt;Regeneration Amount&lt;/h4&gt; &lt;select name="attr_formregeneration" style="width:140px; display:inline-block"&gt; &lt;option value="0"&gt;&lt;/option&gt; &lt;option value="1" selected&gt;None&lt;/option&gt; &lt;option value="2"&gt;⬤ Superficial&lt;/option&gt; &lt;option value="3"&gt;⬤⬤ Superficial&lt;/option&gt; &lt;option value="4"&gt;⬤ Superficial&lt;/option&gt; &lt;option value="5"&gt;None&lt;/option&gt; &lt;/select&gt; &lt;/td&gt; &lt;/div&gt; &lt;div class="sheet-row" align="center" style="display: inline-block;"&gt; &lt;h4 style="text-align: center; width:115px;"&gt;Delirium&lt;/h4&gt; &lt;select name="attr_formdelirium" style="width:60px; display:inline-block"&gt; &lt;option value="0"&gt;&lt;/option&gt; &lt;option value="1" selected&gt;No&lt;/option&gt; &lt;option value="2"&gt;No&lt;/option&gt; &lt;option value="3"&gt;Yes&lt;/option&gt; &lt;option value="4"&gt;No&lt;/option&gt; &lt;option value="5"&gt;No&lt;/option&gt; &lt;/select&gt; &lt;/td&gt; &lt;/div&gt; &lt;div class="sheet-row" align="center" style="display: inline-block;"&gt; &lt;h4 style="text-align: center; width:106px;"&gt;Cost&lt;/h4&gt; &lt;select name="attr_formcost" style="width:140px; display:inline-block"&gt; &lt;option value="0"&gt;&lt;/option&gt; &lt;option value="1" selected&gt;None&lt;/option&gt; &lt;option value="2"&gt;⬤ Rage Check&lt;/option&gt; &lt;option value="3"&gt;⬤⬤ Rage Checks&lt;/option&gt; &lt;option value="4"&gt;⬤ Rage Check&lt;/option&gt; &lt;option value="5"&gt;None&lt;/option&gt; &lt;/select&gt; &lt;/td&gt; &lt;/div&gt; &lt;div class="sheet-row" align="center" style="display: inline-block;"&gt; &lt;h4 style="text-align: center; width:106px;"&gt;Frenzy Difficulty&lt;/h4&gt; &lt;select name="attr_formfrenzy" style="width:40px; display:inline-block"&gt; &lt;option value="0"&gt;&lt;/option&gt; &lt;option value="1" selected&gt;2&lt;/option&gt; &lt;option value="2"&gt;2&lt;/option&gt; &lt;option value="3"&gt;3&lt;/option&gt; &lt;option value="4"&gt;2&lt;/option&gt; &lt;option value="5"&gt;2&lt;/option&gt; &lt;/select&gt; &lt;/td&gt; &lt;/div&gt; &lt;/td&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="6" class="auto-style1" valign="top"&gt; &lt;div style="text-align: center"&gt; &lt;h4 style="text-align: center; width:820px;"&gt;Form Abilities&lt;/h4&gt; &lt;select name="attr_formability" style="width:800px; display:inline-block"&gt; &lt;option value="0"&gt;&lt;/option&gt; &lt;option value="1" selected&gt;Able to touch silver without suffering damage.&lt;/option&gt; &lt;option value="2"&gt;2 dice bonus to all Physical tests, can regenerate one Health level with one Rage check&lt;/option&gt; &lt;option value="3"&gt;+3 Claw damage, +1 Aggravated bite damage, Must spend WP to avoid Frenzy if they didn't kill in previous turn, Upon leaving crinos form Rage is reduced to 1, minimal communication, +4 Health levels.&lt;/option&gt; &lt;option value="4"&gt;+2 dice bonus to all non-Stealth Physical tests, +1 Aggravated bite damage.&lt;/option&gt; &lt;option value="5"&gt;+2 dice bonus to certain Skill rolls, cannot speak, able to touch silver without suffering damage&lt;/option&gt; &lt;/select&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/div&gt; &lt;script type="text/worker"&gt; on("change:form", function () { getAttrs(["form"], function (values) { let form = values.form; let formregeneration = 0, formbonus = 0, formdelirium = 0, formcost = "homid", formability = "", formfrenzy = 0; switch (form) { case "homid": formregeneration = 1; formbonus = 0; formdelirium = 1; formcost = 1; formdability = 1; formfrenzy = 1; break; case "glabro": formregeneration = 2; formbonus = 2; formdelirium = 2; formcost = 2; formdability = 2; formfrenzy = 2; break; case "crinos": formregeneration = 3; formbonus = 4; formdelirium = 3; formcost = 3; formdability = 3; formfrenzy = 3; break; case "crinos": formregeneration = 4; formbonus = 2; formdelirium = 4; formcost = 4; formdability = 4; formfrenzy = 4; break; case "lupus": formregeneration = 5; formbonus = 2; formdelirium = 5; formcost = 5; formdability = 5; formfrenzy = 5; break; } setAttrs({ formbonus: formbonus, formregeneration: formregeneration, formcost: formcost, formdelirium: formdelirium, formability: formability, formfrenzy: formfrenzy, }); }); }); &lt;/script&gt;
1693773617
Chris Jones
Pro
Sheet Author
That has done the trick - you're a legend!
1693775074
vÍnce
Pro
Sheet Author
Chris Jones said: That has done the trick - you're a legend! GiGs is a legend! ;-)
1693777787

Edited 1693778094
GiGs
Pro
Sheet Author
API Scripter
hehe thank you, but don't sell yourself short, Vince. Great work.