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 .
×

Update old sheet to Beacon

1773765451
Marco M.
KS Backer
Sheet Author
API Scripter
Compendium Curator
Hi everyone, I'm working to bring my old sheet to Beacon. I'm halfway through the process but I'm stuck on bringing the data from old games into the new ones. Is there a way to scrap the previous attributes with the OnInit function for all characters? I also thought of writing an extraction function in the old sheet by posting the output in JSON and an input one on the new sheet, but doing it manually for every player would be a pain for any GM.
So, if you wanted to just SCRAP them all, you could just run `dispatch.updateCharacter`. That will say "no matter what is in the database right now, replace it with what I'm sending now". It will delete everything else. You could update your legacy sheet to have an export function that exports every attribute, and then have your beacon sheet run an import that takes those properties, puts them where they belong in the beacon side, and then updates the entire character. If I had to transition between the two, that's what I'd probably do.
1774022676
Marco M.
KS Backer
Sheet Author
API Scripter
Compendium Curator
Hi Nicole,  The problem is that the sheet is for a commercial product that has published materials. I don't think players and GMs would like to download a JSON for every character and then upload it for every sheet.  Can you explain the updateCharacter route to me? How does it read the old attributes? Like, is 'attr_strength' stored as strength or as attr_strength? What about the repeating sections?