I have a few questions concerning item management systems. First of all, if a player has an inventory to store certain items, where would you actually store the items in the program? Would you use some kind of array? And how would you name multiples of the same item, with a number after their name? So would you just use for loop to make, for example, item1, item2, item3, etc.? Almost done.
How do you deal with multiple item generators? If I have two different parts of my game generating items, and the items are all the same except for a number after the name, how will I generate multiples of the same item without looping from zero? (two items named item1 would create some problems…) Do you just have some kind of master variable that you use in every item loop? And finally, if you use a loop to generate multiple items and each item name has a number after it, won’t the item names become extremely long?
Thanks a lot, any help is appreciated. I apologize for writing so much, I just had to ask these burning questions. ;D Thanks again!