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

1671835554

Edited 1672099607
Cross-posted from Bug Reports &amp; Technical Issues 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 to take a copied stat-block from MM, VGTM, or MTOF and create a character sheet, and link a token).&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; I figured out this one.&nbsp; There's a separate flag that counts the total number of flags and displays them. 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?
Update:&nbsp; The description value is still present in the background (JSON export of the attributes: &nbsp; { &nbsp; &nbsp; "name": "repeating_npctrait_-NK06kFCvYHC-hEyVuL9_name", &nbsp; &nbsp; "current": "Magic Weapons", &nbsp; &nbsp; "max": "", &nbsp; &nbsp; "_id": "-NK06kFEHHjhLYt0oXP0", &nbsp; &nbsp; "_type": "attribute", &nbsp; &nbsp; "_characterid": "-NK06jkZLtVVpTOX4MFE" &nbsp; }, &nbsp; { &nbsp; &nbsp; "name": "repeating_npctrait_-NK06kFCvYHC-hEyVuL9_npc_options-flag", &nbsp; &nbsp; "current": 0, &nbsp; &nbsp; "max": "", &nbsp; &nbsp; "_id": "-NK06kFZiay-MZKLxpsn", &nbsp; &nbsp; "_type": "attribute", &nbsp; &nbsp; "_characterid": "-NK06jkZLtVVpTOX4MFE" &nbsp; }, &nbsp; { &nbsp; &nbsp; "name": "repeating_npctrait_-NK06kFCvYHC-hEyVuL9_description", &nbsp; &nbsp; "current": "The balor's weapon attacks are magical.", &nbsp; &nbsp; "max": "", &nbsp; &nbsp; "_id": "-NK06kFn6n7c1tuWaVlz", &nbsp; &nbsp; "_type": "attribute", &nbsp; &nbsp; "_characterid": "-NK06jkZLtVVpTOX4MFE" &nbsp; } However, when the character sheet is opened the description is not there: and even the TA to call the trait comes up with just the name component.&nbsp; Is this a bug I need to report to devs or am I missing something?