View Full Version : inventory question

28th Sep 2001, 02:48 AM
so... is it possible to have more than one instance of a class in your players inventory? like i make a subclass of inventory called "blah" -- can i add multiple instances of blah in a player's inventory? if i can, how do i get access to each one specifically?

right now i've been using "FindInventoryType(<someclass>)" to get a hold of it... but that will only return the first instance it finds.

if this isn't possible, any suggestions on what i should do? i want for each player to have a few instances of this object of mine (3 to be exact) -- i could hardcode all this in my subclass of a player, but that is poor design and i'll probably be changing stuff later and i want everything to be easy to modify.

anyways... thanks for the help


28th Sep 2001, 10:27 AM
well, this forum naturally take way too long ;-)

i went ahead and hacked it all together which is actually ok cause any expansion i make should be able to fit into the scheme i made. i just wish the inventory stuff managed to work.

the problem i've been having is using the built in US stuff in my code - i end up writing up new code that could have been done more elegantly. i guess there isn't much way around that other than experience with the code....