i wouldn't use that... but outline the Max objects from the get go - not to make it easier, but if you give the user unlimited items then this means they can have upto around 4.5 billion
should set this up with something sensible, remember that a value unused is 0 and takes up nothing
so like;
type weapon_t
arrow as boolean
bullet as boolean
grenade as boolean
endtype
type food_t
bread as boolean
apple as boolean
coke as boolean
endtype
type magic_t
fire as boolean
water as boolean
wind as boolean
endtype
type item_t
weapon as weapon_t
food as food_t
magic as magic_t
endtype
dim gPlayer(256) as item_t
load array cType(255)
then you check like
for index = 0 to 255
if gPlayer(256).weapon.cType(index) = 0
item = "nothing"
else
item = cType(index)
endif
next index
etc...
etc...
you just store the names within an array for what you want and hey presto

that might be right ... lol i honestly can't remember
Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?