Hello, I've been having some trouble with a custom character sheet I've been working on. Basically, I have a <select> dropdown that let's you pick from different options, and I'd like to make it so depending on what option you pick, it would alter other values of attributes in the sheet.
Here's the <select> code:
<select name="attr_school" style="border: 1px solid black"> <option value="pas">Pick a school</option> <option value="chron">Chronomancer</option> <option value="elem">Elementalist</option> <option value="ench">Enchanter</option> <option value="illu">Illusionist</option> <option value="necro">Necromancer</option> <option value="sigi">Sigilist</option> <option value="sooth">Soothsayer</option> <option value="summ">Summoner</option> <option value="thau">Thaumaturge</option> <option value="wit">Witch</option> </select>
And here's the values I'd like to modify depending on the selection with the above code:
<div class="sheet-tab-content sheet-tab5"> <input type="number" name="attr_cm" value="0"> <input type="number" name="attr_elm" value="0"> <input type="number" name="attr_enm" value="0"> <input type="number" name="attr_im" value="0"> <input type="number" name="attr_nm" value="0"> <input type="number" name="attr_sim" value="0"> <input type="number" name="attr_som" value="0"> <input type="number" name="attr_summ" value="0"> <input type="number" name="attr_thm" value="0"> <input type="number" name="attr_wim" value="0"> </div>
I will say, that I tried to simplify this, and hopefully that's not where I'm getting messed up. The above attribute values are added to about 80 different spells total, all within their respective school. So rather than trying to update 80 values, I figured it'd be easier to update 10 values, and then have the 80 spells each just add the modifier that has been altered. Like so:
<input style="width: 40px;height: 17px;float: right" type="number" name="attr_i1" value="10+@{im}" disabled="true" />
Any help would be appreciated. I've been going back and forth on it for days, breaking and unbreaking other parts of the code so I figured I'd get some help from people who knew what they were doing.