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 .
×
This post has been closed. You can still view previous posts, but you can't post any new replies.

Allow us to create NPCs by uploading JSON

I have limited mobility in my hands but love to run DND games. It would be a huge time saver and allow me to create much greater variety and depth of my worlds in Roll20 if I could use my various editors and tools outside of Roll20 to create my NPC families and factions in JSON format, then import them to get the NPCs created with default tokens. Then all I’d have to do is upload the token images and link them.  Imagine Marketplace authors building a “tavern pack” of NPCs with names, macros, gear, motivations, brief back stories, etc. 
+1. A compendium drop is basically a collection of data that can be represented in JSON, so it would be trivial I should think to support a more generalized version where you could drop a local file in JSON format onto a sheet and have roll20 make it looks like a compendium drop. It would need some filtering by Roll20, I suspect, to prevent a string that could break the sheet, but that doesn't seem hugely difficult.  I suspect they already do similar for text input fields. That way you could not only create NPCs, but custom equipment items, features & traits, etc. You could probably even use the same mechanism, if it were externalized as an API (Mod) script callable function to allow a script to drop custom objects to a sheet.
1785557767

Edited 1785573470
StéphaneD
Pro
Sheet Author
API Scripter
+1 In some sheets I have authored, I have put some space on the sheet where you can paste a text blob copied from a PDF document which is then parsed and loaded into sheet attributes. It would be so much easier if a JSON file drop without a compendium was possible.
1787898482
Roll20 Dev Team
Pro
Marketplace Creator
Thanks for the suggestion! After 30 days, Suggestions and Ideas with fewer than 10 votes are closed and the votes are refunded to promote freshness. Your suggestion didn't build the right momentum this time, but feel free to submit it again! We find that the best suggestions describe the problem you are having, and the solution you want. You can learn more about the process of making suggestions on the Roll20 Wiki! More details can be found here .