If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Well a bank event is in the default stuff you get with starting on easy. There is even a system variable specifically for that purpose. As for items you'll have to do that on your own.
So for every item you want to store you will need two variables (or an input and a variable). You will need to store either the database number of the item, or the item name (just some way to identify it), and you will need a variable to store the amount of the item stored.
OR
You can make a variable for each item, named Item##Stored, so then you only need number of items that are storable variables. This way you can use a script to display the name.
This script will contain a lot of branches (apply ifs), but it shouldn't be too bad. This is because I believe the only way to add or subtract items is through the party>item command. I don't think there is a generic way to do it, though I could be wrong.
So you will end up with 3 scripts, the What do you want to do (Store, Withdraw, leave) script, the Store Selection and actual storing script, and the Withdraw selection and withdrawing script.
Now for displaying this you have the normal 3 options, Message Box (easiest but slowest to navigate), Text Boxes and VFX (both you will want to do after you make all your items, so the names or positions don't change). You could probably try manipulating the buy and sell merchant command, so they don't subtract money to do this.
Well you could just use one, if you just go by the order they are in the database. This would make displaying easier too. Either way since I don't think there is a generic way to do it, you will need a large sort script.
And this is RPGM2, you should know by now anything interesting and not default takes a lot of work. But it's all worth it, well sometimes.
Comment