Hello there, I appreciate all the help i can get, your input is valid to me.
To begin with i will describe what effect i wish to have then i will present the code i am working with.
I want my character to pickup a “weapon” which i am calling “Artifacts" in my game, i want that Artifact to go to their hands, when they pick up another artifact it goes to the inventory socket on the characters back, hip or arm. I attempted to add an int32 StorageSlotIndicator; to my Artifacts header file so that i could increment and have decrements to determine which StorageSlot should be used.
I can't figure out where to place the increments and decrements for this indicator, and where ever i seem to add it, it doesn't want to function the way i want as described above. Please help, What can i do? Is there a better way? Where should i increment and add decrements?
Thankyou for reading
here is the code:
Starting with the Artifact.h File::::::
![](https://uploads.gamedev.net/forums/monthly_2020_02/802d7b0207ed46abb89d980a4e87eb92.Screenshot-(129).png)
![](https://uploads.gamedev.net/forums/monthly_2020_02/a5f329e9d6aa45a58575c89eebe4e38c.Screenshot-(130).png)
Below is the Artifact.Cpp
![](https://uploads.gamedev.net/forums/monthly_2020_02/d82984ce74304c6682a2778591358d65.Screenshot-(131).png)
![](https://uploads.gamedev.net/forums/monthly_2020_02/e71af34259264c56a296c54e55e59df4.Screenshot-(132).png)
![](https://uploads.gamedev.net/forums/monthly_2020_02/591300b995954cab9608677ec87da22e.Screenshot-(133).png)
CharacterBase.h & CharacterBase.cpp (Inventory Relevant Code Only)
![](https://uploads.gamedev.net/forums/monthly_2020_02/8acfcfead7d14b3788c707e4073089cd.Screenshot-(134).png)
![](https://uploads.gamedev.net/forums/monthly_2020_02/ff7fee18ec0942eaa8a946417078321c.Screenshot-(135).png)
![](https://uploads.gamedev.net/forums/monthly_2020_02/81da7270be184e0f886f2bd49d30c708.Screenshot-(136).png)
![](https://uploads.gamedev.net/forums/monthly_2020_02/69f1308d1ab44d06897b7dd74c6cf552.Screenshot-(137).png)
![](https://uploads.gamedev.net/forums/monthly_2020_02/1805fab2f1584799add5c4f53e577298.Screenshot-(138).png)