Step 1:Create 4 types of variables, 1 for the store value, 1 for the withdraw value, 1 for the number of items in your inventory and 1 for the amount of items already stored.
Step 2:Set all of the "items in inventory" variable to there respectable variables as seen here, also add a label so when somthing is done the npc will jump back to the beggining of the event for more options
Step 3:Make your npc say whatever then add some choices like I have shown and set the When cancel to Branch like shown, (dont worry about the more option i'll get to that)
Step 4:Under the Storage option Put some more text for ur npc referring to the option,Then insert a Show choices command, depending on the amount of items your going to use make edits according to the command (if you do use moer than 3 items witch you probably will make the last option a more option and make the When Cancel set to branch, In the storage options
you must Make and option for each separate item as shown, (i have added alot of items for use in the demo but im not going to display
them all in this tut on how to use this if you wanna see all of the items in play watch the video or download the latest demo posted)
Step 5:Under the first item option Make the Npc ask how much you would like to store then, insert an input command like so and Set it to the Store Value Variable like shown and make sure its only 2 digits long as that being the max amount of items a game can hold if yours hold more make edits accordingly

then make a conditional branch

make the condition this.

if the condition is not met make the npc say somthing reguarding why its not met, if the condition is met, under the Else part of the condition
the first command u will be putting in the else part of the condition is a change items command like shown.

then a control variable command like shown.

then add a jump to label option and make it jump to the label u made in the beggining of this tutorial. phew...that was long and that was only the beggining also note that ive only done this for 1 item depending on how many items you use you will need to make an option for that item and do this step for each item (making the conditional,if its false he will say why, if its true u will do all of this for that item,so lets recap this is what we have soo far...
Step 6:we just did the store option now its time for the Withdraw option soo scroll your way down to the withdraw part of the event

Add some Choices same as the storage each item needs it own withdraw choice
Step 7:Have the npc Ask how much they would like to withdraw maybe say how much they have left to add a nice touch. insert an input number command like shown. same as before 2 digits unless ur game holds more items than the default (note: your only able to store the maximum amount in your storage as well, then again i havnt tested it so if you wanna save me the time of re uploading another revision then by all means test it and let me know if it works if it does maybe i'll add a new revision but the withdraw all option that i show you later wont work or at least it wont do its job it will probably be switched to Withdraw Max amount.)
Step 8:make another conditional branch only like this this time.

under the condition if its true make the npc say somthing referring why its true, then under the else part of the condition insert a change items command like so.

after that put a control variable command like so make sure its subtract not add.

after that end the else part with jumping back to label 1......phew once again was pretty long your hanging in there another recap
Step 9:now comes the fun part(its not that hard i dont think...) The store all and Withdraw all commands which was the more option that i said i was going to get back to you on well ne ways....under the more option of ur showchoices we made at the beggining of the event insert another show choices command and this time name them Store all and Withdraw all like shown. make sure the 3rd choice is the when cancel.

under the store all option of the choices make a conditional like shown.

if its true say why, if its false put this

do not worry im going to get into the variables, for each and every item you must set a variable and add it to the number of pots stored. like shown.

and after u do the variables u gotta do it to ur inventory as well or we have what u call an item duplicated exploit

.insert a change items command likke shown

okayyyyyyy were almost there one more command left and were done with the npc version, recap~
Step 10:okay now were moving on to the withdraw all command

.

Make a conditional once more like shown.
Step 11:pay close attention to those variables they need to be exact i suggest running through all ur event and make sure each variable is exactly correct with the correct options with the correct order. do the same as before if its true say why if its not do this.

now in this choice ur doing it completely opposite as the last, in the last choice the variables came first but in this one the change items command comes first like shown.

and of course our variables.your doing somthing different to the variables this time your setting them to 0 because once u withdraw all ur items the storage needs to be set to 0

otherwise it bugs idk why it does that it just does if u dont like it, well enjoy ur bugged withdraw all option then >:[

but wait thers more cant forget the backpack if you wanna do that instead the back pack is actually quite simple once uve done this, just copy and paste this entire event into ur common events name it back pack and then make an item call it backpack, leave all the elements/status changes empty, set the scope to none, occasion: only from menu, consume: no, Speed: 0, animation: (if you want one when u use it

), common event: Backpack, Rest of the options under this leave at default.
If you wanna see this event in action the video link is near the top of this thread or if u dont like my video try it out for urself the download is right below 1.1 is the latest (obviously >_>)
another note i put alot of work into this tutorial so please have some common curtesy and dont flame this submission even if it is useless to you, it may be useless to somone else making a game, if people start to flame this post i will remove it no questions asked.