Im trying to make somthing to do with inventory. How would I do this. I want to have NPCs that the player gets and every time they get them i want it to add 1 to the inventory but also to a string or somthing. This way they can get 3 of the NPC and it shows 3 in the inventory but wont allow them to get more until they go to some place and use it up. For example:
On bread baking on 2001, say you could carry 3 things of wheat. It showed 3 wheat symbols in the inventory. Then they had to carry it back to the bread place and they would walk to a table and 1 one disappear from the inventory leaving 2 wheat icons. Then the actions would happen. After making the first bread they had 2 wheats left. They can either go get another to make 3 there or just use up the other 2. How would this work. I dont know how to make it take 1 away from the inventory.