Help with a script/plugin for multi-party and/or multi-character inventories/gold

Sorry for taking so long to answer, but for some reason I did not get notified about the post. I just saw the update as I was browsing a forum.

You can store the code into a custom made plugin, and then call it through a script command inside the engine. Or you can store it as a common event. Both options are completely valid and it is up to you as to how you decide.
The advantage of making a custom plugin over putting it into a common event is that the custom plugin uses way less code than common events, so you spare some execution time.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-a-script-plugin-for-multi-party-and-or-multi-character-inventories-gold.82797/