RMXP Multiple Inventories

Hi everyone, I'm creating a game where you temporarily control a side character. I want this character to have their own inventory (and not have access to the main party's inventory). I am assuming this will require a script. Does anyone know of a script (or events) that will achieve this?

It does appear such a script existed at some point but some of the websites are no longer accessible. There are plenty of these for other makers, but I can't currently see one for RMXP. Any help is much appreciated.
Would that be it?
In this case it might not be the easiest way to tackle the OP's issue.

Actually, there's just 2 things such a script should do. It should allow you to create a second party, consisting of that side character only, and storing it else where like in the game system variable. This is easy to accomplish, but I'll be busy for the rest of the day so it'd be better to wait till tomorrow to get it done.
I think the one question I would have first is IF the other party will make a return or not, you can make use of Variables to track the amount of Items someone is carrying and take/add Items accordingly.
Yeah, the dev void use that indeed, yet, it might be kind of cumbersome for some people. And what if the side character makes a comeback?

That's why the script might be the quickest and easiest solution here IMHO at least.

Edit: I hate cellphones.
Would that be it?
Technically this WOULD work, but... it seems like it will create more problems than it would solve (I don't want each of the main party to have an individual inventory or a carry limit as this would not suit the style of game).
I think the one question I would have first is IF the other party will make a return or not, you can make use of Variables to track the amount of Items someone is carrying and take/add Items accordingly.
In the case of my game, the side character will not join the main party nor will they appear later (at least not in a playable scene). That said, I imagine that would be a great feature to add into a script, but unfortunately, I am poor at scripting.

I can see this being possible by eventing using variables, but this is a slow and cumbersome solution (there are around 30 different kinds of items and pieces of equipment the player could have by this point). I agree with kyonides that a script would be the quickest and easiest solution.
I never used RMXP's RGSS for more complex things, but by reading the codes a little I was able to do this combined with events.
I transformed any game variable into an Array and then with a loop the quantity of each item will be saved in an Array.
Position 0 being equivalent to the potion item (ID 1) and so on.

In the example below I have the following items in inventory:
x15 Potion (ID: 0001)
x10 Tonic (ID: 0009)
x5 Seed of Mana (ID: 0018)
Updated:
RMXP-BankItems.png


I don't plan on finishing it today, Kyonides will probably have created a full script for it before I'm done. If there is no solution by tomorrow afternoon, I will continue where I left off, I still need to add the equipment.

I did a test increasing the existing item types to 999 (RMXP limit) and automatically adding 99 of each to the inventory, the delay is very short. Result:
RMXP-BankItems-LimitForce.png
Alright here is what you want to do then: ANY Item you give to the Side Party is being removed for sure (no need for Variables here), If you have added 5 healing Potions to his inventory at the beginning, at the end of the side part, you're going to remove 5 Healing Potions no matter how many have been used by the player. (You could even remove 99 Potions to make 100% sure that the Player will not receive any "extra" potions)
My question would be this, would you prefer to create and find and the original and secondary party by an internal name or by ID?

My question would be this, would you prefer to create and find and the original and secondary party by an internal name or by ID?

I wouldn't know how much of a difference this would make, but I imagine an ID would be easier.
Alright here is what you want to do then: ANY Item you give to the Side Party is being removed for sure (no need for Variables here), If you have added 5 healing Potions to his inventory at the beginning, at the end of the side part, you're going to remove 5 Healing Potions no matter how many have been used by the player. (You could even remove 99 Potions to make 100% sure that the Player will not receive any "extra" potions)
This would work if the game started with the side character, but the side character appears a little over an hour in (after the main party has cleared the first actual dungeon).
I still need to add the equipment and then clear the Party's inventory.
Now it stores weapons and armor, but as I said, Kyonides would probably have already created a practical and efficient solution.

the delay is very short
I don't know why I didn't use FOR before, I think I was too tired, now it's instantaneous.
If you're interested, open my profile and watch the video I posted there.

(Sorry if my English seems confusing to you, it's not my first language)
This is very good Dev_with_Coffee; I've got the storage part working correctly. My only issue now is restoring the items. I have tried copying the code from the video, but the first line in the common event "restore_previous_items" is cut off (see around 20 seconds into the video). I'm sure it will work if I have the rest of the line, so are you able to share the rest of that line?
I thought you would use Kyonides' script, I tested it and it is very functional, except for the bug that I already reported.

You don't need to recreate everything in the video, download this attached file and extract CommonEvents.rxdata.
Create a new project, close it, and replace the CommonEvents.rxdata file with the new one.
Open the new project that was previously closed and copy the events to your project in the other instance.
Hey! It's not my fault that the F12 reset crap has never worked in the RM series. (I'm generalizing here.) Plus at this point who would encourage people to press that terrible button? 😅
I thought it could be fixed by working around the cause of the problem.
For example, the dev can create a team change on the first map before the introduction.
What I meant there is, that F12 IS THE BUG! Really, in all caps! My script does work fine as intended. It's nice Ruby / RGSS code that does jump from team A to B in a few frames. This is customizable by the way. My script doesn't have a bug nor a couple of VX or VX ACE's script that have implemented a similar mechanism.

Hit that dreadful button, and voila, there's your bug, the F12 bug again. No matter how well written the code is, you'll get errors at any point during execution. Sometimes its effects are immediate. Of course, anybody unfamiliar with the worst part of the engine will think that there's an issue with any given script.

Is there a way to minimize its impact on any game? Well, yeah, we can add a small unless modifier at the end of EVERY alias method invocation plus a specific global variable $@, standing for location of error (by reloading the alias). Yet, some other permanent solutions are VX ACE dependent. And guess what? Their solution is pretty simple: blocking the F12 button from triggering all that madness.
Thanks heaps for the help; I've got it working perfectly!
Script updated!
By the way, will you use my script or not?
If you don't need it, just let me know about it so I can clean up my account of all unnecessary files and folders.

Original thread: https://forums.rpgmakerweb.com/threads/rmxp-multiple-inventories.163900/