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

Issues with HTML While Creating Custom Sheet

1423565009

Edited 1423652489
Hello all, Just as a forward, I am on the dev server mainly. I have also tried both of the issues I have on the normal server and run into the same issues. Edit: I seem to be having difficulties yet again. The stuff from the linked thread below that i had found helped for a bit. It seems to be broken again. Virtually nothing has changed. The first issue I'm running into is an issue with my tables in my campaign. I noticed that skills aren't updating when changing the level value. In One Piece D20, your skills are based off of your level and whether or not they are your favored skills. So, I've got it set to pull ranks of the skills from the levels. But it isn't updating when changing the levels. I've got two checkboxes accompanying the skills, one for if it is a favored skill and one for if it is a non favored skill. They look like this: Favored: title="@{Appraise-fav}" type="checkbox" name="attr_Appraise-fav" value="(3+@{level})" NonFavored: "title="@{Appraise-nofav}" type="checkbox" name="attr_Appraise-nofav" value="((1 + @{level}) /2)" (They are formatted correctly beyond this little piece. This is inside of the input tag.) The Ranks look like this: title="@{Appraise-ranks}" type="number" name="attr_Appraise-ranks" value="(@{Appraise-fav} + @{Appraise-nofav})" disabled The total that adds the ranks and the mod looks like this: title="@{Appraise}" type="number" name="attr_Appraise" value="(@{Appraise-ranks} + @{Appraise-ability})" disabled I'm fairly new to this whole thing, so I'm not sure entirely what I'm doing wrong. I have provided all information I can think of at the moment. If you need anything else to help me, let me know. The total updates when unchecking & rechecking the box, but I was hoping my Players wouldn't have to do that every time. Both check boxes are functioning correctly otherwise as far as I can tell. I've got a second, smaller problem. The roll buttons I've added don't seem to be working. When clicking it, I end up with something like this in the chat: 1d20 + (0 + 0 + ((floor((10 + 0 + 0 + 0)/2)-4) + floor(0/2) - (floor(abs(0)/2)) - (floor(abs(0)/2))) + 0 + 0 + 0 + 0). And it generally gives me the roll + 1. Not sure whats going on there. If its helpful, after the button tag, I've got something like this: type="roll" value="@{character_name} attempts to appraise the item: [[1d20 + @{Appraise}]]" name="roll_Appraise-Check" Once again, I've tested these both on the Dev Server as well as Normal. Any assistance is appreciated.
Oddly enough, it won't let me edit my original post -.- But after doing some fiddling with my html (read: deleting a section, saving, refreshing and re-adding that same section) and testing on the normal server again, it seems as though the issue I was having with the table has been fixed, but only on the normal server. Still not working on the dev server.
After digging through the forums more, I have discovered the fix to my second problem. Thanks for anyone who actually bothered to take a look at this.
What was the fix? I didn't figure anything out in the brief time I fiddled with it. My code making skills are infantile, so any new knowledge would be awesome.
1423630135

Edited 1423630251
According to a thread I read, Which I will link if I can find it again, The character sheet I had set up was pulling from the old sheet somehow (Or at least that is how I read it) and I needed to recreate the sheet. It worked, thankfully, whether that was actually the issue or not. Thread: <a href="https://app.roll20.net/forum/post/879669/pathfinders-character-sheet-not-rolling-right#post-1034100" rel="nofollow">https://app.roll20.net/forum/post/879669/pathfinders-character-sheet-not-rolling-right#post-1034100</a>
That sounds like the character sheet was using values stored in the Attributes and Abilities tab of the character journal (just to the right of the character sheet tab). This is where all the character sheet data (all those "att_" thingies) are saved. Another option- if this is the case- is to go to Attributes and Abilities, and delete all the entries in the Attributes column (the "x" with appear on mouse over). Important: go back to the character sheet and 'tab' through everything. That will re-save the information, correctly this time. If you don't, next time you open the sheet is will be blank.
Everything does seemed to be working. And it updates on checking the box. Here is what I used (pretty sure its what you use): Favored: &lt;input title="@{Appraise-fav}" type="checkbox" name="attr_Appraise-fav" value="(3+@{level})"/&gt; NonFavored: &lt;input title="@{Appraise-nofav}" type="checkbox" name="attr_Appraise-nofav" value="((1 + @{level}) /2)"/&gt; &lt;br&gt; Appraise Ability &lt;input type="number" name="attr_Appraise-ability"/&gt; &lt;br&gt; Level&lt;input type="number" name="attr_level" /&gt; Appraise Ranks&lt;input title="@{Appraise-ranks}" type="number" name="attr_Appraise-ranks" value="(@{Appraise-fav} + @{Appraise-nofav})" disabled/&gt; &lt;br&gt; Appraise (total)&lt;input title="@{Appraise}" type="number" name="attr_Appraise" value="(@{Appraise-ranks} + @{Appraise-ability})" disabled/&gt; &lt;br&gt; &lt;button type="roll" value="[[1d20 + @{Appraise}]]" name="roll_Appraise-Check"/&gt;