It's kind of a container the player has to hold Items I guess. Seems simple enough. Coding this should be real quick.
What about creatures can they carry items?
Oh..yeah of course, so an inventory is not player specific after-all, inventories can be owned by any a creature - including the player.
What about a chest and other containers in the map?
Didn't think of that...I guess those are furniture. For simplicity I can just make them a creature that cannot think or act I suppose...
What about a bag?
Yes a bag. A container the player can carry
Oh. *facepalm*. I didn't think of that either. A bag would be an item but it also has an inventory....
Can the player carry a bag in a bag in a bag?
I guess....there's probably only going to be a weight limit.
How are you going to handle the UI for nested inventories?
And what about corpses? They have inventories right?
Yes they still have inventories the player can browse
But you can carry corpses right?
wow it gets even more complicated. Can you carry a dead creature while it holds all it's inventory? That means you aren't just carrying items you can also carry creatures. Hmm maybe dead creatures just drop all their items to the floor. Would make it easier...but has downsides too.
What about worn equipment like armor though? Does that just fall off onto the floor?
Uh I guess it could...unrealistic but that would also make things easier.
Now, weight restrictions...
[conversation continues into the night. No coding is done]