Would it be possible to separate the Actors.json file into one file for each character and make a deployed game recognize any added files for it? Basically, I'm thinking of a system where people can potentially add characters to a game or generate new ones. The basic file structure I had in mind was an "Actor" folder in the place of the json file with a separate file (possibly json if necessary) for each character. That way, if a new file is added, the game would recognize it upon startup. I'm also wondering if there's a way to make event chain files so there's a way to get the imported characters in the game.
I'm thinking it might be possible by editing this section of code:
{ name: '$dataActors', src: 'Actors.json' },
(line 49 of a default project's rpg_managers.js file)
I'm not sure, however. I don't know if its applicable, but I've been studying the Discord Bot API (I know thats fairly different, but this might help) and the code in this tutorial video does something similar:
I'll admit I'm a beginner at Javascript but I'm willing to put in the work, I'm just curious if this is something that can be done here.
I'm thinking it might be possible by editing this section of code:
{ name: '$dataActors', src: 'Actors.json' },
(line 49 of a default project's rpg_managers.js file)
I'm not sure, however. I don't know if its applicable, but I've been studying the Discord Bot API (I know thats fairly different, but this might help) and the code in this tutorial video does something similar:
I'll admit I'm a beginner at Javascript but I'm willing to put in the work, I'm just curious if this is something that can be done here.