One of the most common systems that a lot of beginner scripters struggle with is an inventory system, so today I am going to open source an inventory system I made recently.
[itemName] = {
Name
Type --set to "Tool" if you wish for an item to be equippable
Weight --item weight
Model --model path
Stackable --if item can stack
StackCap --how many items can stack per slot
Droppable --if item can be dropped
Desc --item description, will be shown when you hover over an item in inventory
}
This is my first open sourced project and I still want to know how I can improve this system so please leave some tips or tell me what Iām doing wrong or what things you donāt like about this system such as: the structure, my methods, bad practices etcā¦
I got an inspiration from this post Open Source Advanced Inventory System and decided to make my own and added some things such as slot and stack system etcā¦ but Iāve made mine from scratch.
This is really nice, you could make another one that is keycoded, like G or E to open etc. Instead of a button. But good work! This will really help out starter developers.
There we go, much better. I love the item stacking you added. There are thousands of desperate developers looking for a good inventory system and supplied just that.
You can add items by picking up items on the ground, for default items look in DataSetter script and there should be an instruction on how to add starting items there
I want inventory slots and the item button frames to be draggable if you can do it here is an example: long click the button frame then drag it to the inventory slot and it will be automatically added into that inventory slot, Ik if it sounds hard but if you canāt do it then thatās fine
After seeing the last time you open-sourced this (wichā¦ I really donāt need to explain what happens, I think you understand what I mean (It was today)), you credited the inspiration source, wich, is always good to do. Then, I already saw the profileservice, but still donāt understand why you used it instead of the regular datastore service