Add and remove items from moba like inventory system.

I am currently programming items for a moba like game where you get items effects just from having them in your inventory. How I currently have it set it is the store simply adds items into a string array called “Inventory”.

Lets say I have 2 of the same items in the inventory but I want to sell one of them. How could I remove only 1 instance from the string array without clearing all instances of that.

I know I could just set counters to every item and for loop the inventory and add to the counter of that item but I am hoping there is a simpler way to do this without a separate int or float counter.

Hi there is a simple solution for this.
you can use the find node and remove the index check the image. :slight_smile: