in reply to [untitled node, ID 308077]

Method 2 is better, but can be improved. Split the inventories table into three seperate tables, one for each item type (armor, weapons, and items) and get rid of the item_type field.

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

: () { :|:& };:

Note: All code is untested, unless otherwise stated