Hey,
so I’m quite new to Defold but have already done a few smaller games here and there, like Snake.
Now I want to make something bigger but ran into a little problem: I’m quite unsure how I should make the player’s inventory.
I know that I want it to be weight-based, like for example in Skyrim. My idea would be to make a table containing every item and its attributes (for example its weight) and adding these items together with the associated attributes to the table which manages the player’s inventory, if the player picks that item up.
But here’s the problem: I have no clue on how to add such “attributes” to the table entries.
So now I’m also questioning if handling everything with tables is even the right idea.
I Hope someone can help me with that!