Heya, so one of the cruxes of my gameplay is spending excessive amounts of time looking through my containers for scrolls/potions/items that i have saved up for certain situations. One of the things that I have always loved about Minecraft is the inventory sorting mod, and wanted to try and make something similar for BG. I have looked a little into modding tutorials (many of the links are broken from the collections i found), and also have some coding background to work with.
I have primarily only looked at scripting thus far, but it looks possible? There are a few things I was having trouble figuring out and wanted to ask directly.
1) Is there a way to access a player's inventory items, and their properties? I.e. I want to check if the user has any inventory items whose in-game name contain the string "holding", or for items with the item flag "short sword". This will be important for both checking what containers are in the inventory as well as whatever sorting algorithms I settle on using.
2) Is there a way to access a container in a player's inventory such that I can add or remove items directly to/from it? Relating to the sorting idea, I basically just want to save all the contents of my bags as a csv or something so i can then sort it with bubble or whatever and then put it back in in the new ordering.
3) Is there a better way to go about doing this? Scripting seems like the most viable avenue, but perhaps there's something that will be better to use than the DLTCEP script editor? Any recommendations in this area are appreciated.
And of course, it is possible that this already exists and I'm being a moron and am just not able to find it. In that case I would greatly appreciate direction towards it, though would also like answers to the questions above for my own curiosity and education.
Thanks!
Bard