Hello Everyone,
I have been trying to make this inventory for over two weeks now and want to give up but im dying to get past this stage so I can move on to better aspects of my game.
What I am trying to make is an inventory where I:
- Walk to an Item and press a button to pick it up
- The item adds to my inventory
- The Item changes an Icon on my widget to show it is now active
- When I click that newly active button it will attach an item to the socket
- When i click a different button that is active it will swap the previos actor placed to the new one
SO let me be specific. I have 4 types of items (Hats, Eyes, Mouths, and Shirts). These Items have 4 different Tabs that the player can select through and click the desired style of Hat, Eyes, Mouths, or Shirts.
Essentially it is similar to how World of Warcraft has their Transmogrification system. The player clicks the active button and gets that item added to the character. If they want a different Hat they click the next one and it then replaces the current one.
My issue is that system. Everything I look up about inventory systems in UE4 always has a “next slot available” system. I have specific buttons I want to be changed as the rest will have blacked silhouettes until the player picks up that item.
I have tried so many ways to get this and nothing has worked.
I have a working pick up system that uses a line Trace
This is what I have my inventory widget looking like and how it has tabs and how it looks when something is picked up. The blacked out item is how it looks when nothing has been picked up for that slot. At the moment I have it just reading the inventory and if the String (Name) is equal to the name i typed then it changes the style. It works and im happy buuuuuuutttttttttt…
I cant get anything to spawn and attach to the character socket when a specific button is pressed.
Every tutorial I have watched has a button widget that fills the “inventory vertical box.” I dont want that. I want to have the buttons placed like I have and say “if you press the tophat button and its active, spawn the tophat on the head socket and if you want to take that off press again.” or “if you want to switch this hat for another, press the active button hat you want and it switches them.”
So far its taken way too long to get this myself and as a 3D Environment Artist, I am surprised I have gotten this far.
I have also placed below a picture of my Base Item BP with the tags for name, and such.
This inventory isnt really an inventory, its rather a collection system for your character to wear. A WARDROBE one might say.
I Hope this is clear enough for anyone to help me. I know this is a lot to ask but Im so confused on how to get this to work.