Skip to content

Basic inventory implementation#46

Open
Dragon20C wants to merge 9 commits intoGodotCommunityGamesOrg:mainfrom
Dragon20C:main
Open

Basic inventory implementation#46
Dragon20C wants to merge 9 commits intoGodotCommunityGamesOrg:mainfrom
Dragon20C:main

Conversation

@Dragon20C
Copy link
Copy Markdown
Collaborator

I have spent some time on creating a new inventory system, I have taken some of the previous inventory system and created a new modular inventory that should be able to interact with multiple inventories.

Feedback is required!

features not complete:
1 : Stacking items - not implemented yet

2 : inventory hand bar - not implemented yet

3 : inventory tool tip - initial function exists just need ui

4 : using items - this could link to the previous feature tool tip as it could be an option menu

5 : dropping items on ground - This is not implemented at all and I am not sure how I would do this

@Dragon20C Dragon20C self-assigned this May 19, 2025
@Dragon20C Dragon20C added the enhancement New feature or request label May 19, 2025
Copy link
Copy Markdown
Collaborator

@ChaoticTechSupport ChaoticTechSupport left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

im seeing quite a bit of redundant code, but other than that, good job!

Copy link
Copy Markdown
Collaborator

@ChaoticTechSupport ChaoticTechSupport left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you make this compatible with the latest version?

Items will load from a dictionary (in the future a Json file)
added the ability to pick up and drop items, it also shows the player dragging the items around.
The inventory can now be accessed by using the E key in game.
Changed inventories variable from dictionary into an array with minimal changes.
Removed IDs from items placed in the inventory slots.

Fixed items being set into incorrect positions.

Inventories now have an item inventory resource for storing items positions and item data, Requires a save and load method.
@ChaoticTechSupport
Copy link
Copy Markdown
Collaborator

is this still being worked on?

@Dragon20C
Copy link
Copy Markdown
Collaborator Author

is this still being worked on?

unfortunately no, sorry just been busy with other stuff, though it is a good structure so if someone wants to take over then that would be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants