I developed an Inventory system from scratch using the Unidad Moribunda video game I had been working on. This wasn’t your usual “equipment” script which I was accustomed to coding, but rather a dynamic system that allowed a varying number of items to be picked up, equipped, used, dropped, and saved.
I made a wide range of multi-purpose functions that could be used by the different objects, the objective system, and the player save system. From this, I started drafting the specific logic of the inventory system intself.