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

Character Sheet attr ID creation

1586397226

Edited 1586397261
I came across a browser plugin that might allow me to upload character sheet data: <a href="https://addons.mozilla.org/en-US/firefox/addon/roll20-character-import-export/" rel="nofollow">https://addons.mozilla.org/en-US/firefox/addon/roll20-character-import-export/</a> If I have a character sheet filled out I can export the data and it saves it in json which I can then import again. The json output looks like: &nbsp;&nbsp;&nbsp; "attribs": [ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "name": "missilehitbonus", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "current": "2", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "max": "", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "id": "-M4PN1EoB0KkDvGy-lDk" &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "name": "maxhench", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "current": "6", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "max": "", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "id": "-M4PN1EqbSSRQ0eI62iL" &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }, My question is how are the IDs being generated? I asked this question at the discord server for that plugin's support. They said it was created by roll20. I would like to go from some markdown and then create the necessary json that I can then upload. When I try to create a string of 19 random characters [-A-Za-z0-9_]{15} that seems to conform to the IDs I've found so far the import of that json fails. I also noticed that the leading 4 characters seem to be repeated for all IDs. Grabbing that from a character sheet export and then creating a 15 character string to append to that for the various attribs didn't work either.
1586422329

Edited 1586422400
GiGs
Pro
Sheet Author
API Scripter
This is apparently how roll20 generates the UUIDs: <a href="https://app.roll20.net/forum/permalink/4258551/" rel="nofollow">https://app.roll20.net/forum/permalink/4258551/</a> If you use a similar method to create yours, they should be valid. Though its not guaranteed- maybe that extension will only work for characters which have been created within roll20.&nbsp;
GiGs, thanks for the link. I'll check it out and see what happens.