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

repeating_npctraits_{rowId}_description value disappears from character sheet after creation from API

Hello, I have recently refactored an old API script that parses a pasted stat block and creates a character sheet with it.&nbsp; When it initially creates the character sheet the repeating traits will show the entered descriptions when first opened, but each time it is opened after that the descriptions will disappear one at a time as each is opened.&nbsp; This happens on both Chrome (Version 108.0.5359.125 (Official Build) (64-bit))&nbsp; and Firefox ( 108.0.1 (64-bit)).&nbsp; I am currently using the D&amp;D 5e sheets by Roll 20 current version.&nbsp; A copy of the API script is here:&nbsp; <a href="https://drive.google.com/file/d/1In80-AIMHx6QGAU7eEIFXE3LvbvRAxmZ/view?usp=share_link" rel="nofollow">https://drive.google.com/file/d/1In80-AIMHx6QGAU7eEIFXE3LvbvRAxmZ/view?usp=share_link</a> &nbsp;(Please keep in mind I'm still in the process of refactoring.&nbsp; As-is it works as intended just fine).&nbsp;&nbsp; As an aside, the saving throws and proficient skills don't show up on the NPC display unless I modify another value in that section manually.&nbsp; The actions that are attacks also don't show any of the attack information on the NPC display unless I modify the section or uncheck and recheck the checkbox.&nbsp; Is this something that needs to be fixed in the sheets or is there something I can do in the API to fix this? Thank you!
Update:&nbsp; If there is only one trait, and after the character sheet is created I delete that one trait and run the script again then the description text stays.&nbsp; When there are more than one trait this trick does not work at all whether I delete one, none, or all of the traits.&nbsp; Any ideas?
1671824570
Gauss
Forum Champion
You might have more responses if you post this in the Mods (API scripts) forum. I suggest reposting it there.&nbsp;
Thank you.&nbsp; I'm not sure this is an API issue though, the values are placed as they should be, then they disappear when the sheet is interacted with which seems like a bug to me.&nbsp; I'll post there as well.
1671835154
Gauss
Forum Champion
The forums are primarily users helping users, while this may be a bug if it is API related then you might get more folks on the API forum helping to troubleshoot it.&nbsp; If you'd like the Devs to get eyes on it I suggest filing a bug report with them via the Help Center .