Howdy,
I'm opening a new thread because it's a new request non related to the other script editing (which was solved thanks to TheoAllen and A-Moonless-Night)
so here's the big deal:
This project I'm trying to put together has a storage box where the player can put items he doesn't want (because he has limited inventory slots); I went with the Bravo Item Storage System which works perfectly and - with very little editing on my part - does almost everything I want.
Here's a small explanation of what the script does and how I edited stuff:
- The script allows you to chose between Items, Key Items, Armors, Weapons and Gold, and put your stuff into a storage box. Since I don't use gold and I don't care about Amors/Weapons, and Key Item have been turned into readable files, I only need Items I was able to bypass the category selection and jump directly to the Withraw/Take Item - Store Item part, so far so good.
-I also edited the position of some windows, and I was able to recreate the same Equipped Weapon and Health/Status windows identical to the game's menu. No big deal, I copy-pasted the code for those windows and added some new lines somewhere in the code, and to my surprise, it worked prefectly:
Game's menu:
Storage Box:
sorry I had to host the images externally but I'm still running into an error that doesn't let me upload files on the forum.
Anyway, the item window automatically took the same form of my menu, I had to do nothing at all, and that's perfect, my only complaint here is the fact that it doesn't appear right off the bat, but I have to select "Store Item" first, in order to see my inventory. It's not a bug, it's the way the script operate, but I would like to change that and have the item window be always visible just like the "Equipped Weapon" and the "Name + Health Bar" windows.
Now comes the hard part; I actually would like to create a different window for the "Take Item" option (for now it uses the same scheme as the item window); instead I would like it to occupy the remaing space on the left side of the item window, and run a regular item list (Item Icon, Item Name, Quantity) all the way down. I managed to draw the box already:
this also appears right when I open the box, but it doesn't do anything, also it disappears if I exit the "Store Item" window. As of right now, the game crashes when i choose "Take Item".
So yeah, recap, my two issues are:
1- How do I create an indipended item list for the item stored in the box?
2- How do I make everything visible all together (with the only exception of the [Item name X quantity] box which appears only after I selected an item, exactlt as intended)?
Extra question: is there a way to create some items that cannot be put in the box? Either with notes tag or anything else
Finally, I realze this is kinda messy, so here's a link to a downloadable project with my scripts on. It's an early draft so I'm not worried about people vandalizing it, because there really is nothing to vandalize *lol*
https://www.dropbox.com/s/1rez70j8h4o1i8s/TDP-ED.rar?dl=0
I wanted to post the script but it was too long for the board, but you can find both the current version of the Bravo Storage Box and a previous version (before I messed up) in the game's script.