One major benifit of combining items/weapons/armor into one table is that then you code for one and you have the rest. It also makes it easy to add new classes of items later on. In that way it at least makes sense as to why you combined them all together in the inventory feild, then you don't need much modification to store/inventory code in order to add new classes of objects.

I do become more and more interested in why there is as yet no module that allows you to store items with meta data (like armor bonus, attackt bonus...ect, different attribs for each item) in a database. I know that outlook already uses some system that allows it to store different peices of information for each item in its lists. It seems like it shouldn't be to hard to wrap something around DBI that would handle the special needs of handleing the extra tables and links, and building the required queries.

/me wonders off to cpan to see if there isn't a module already


___________
Eric Hodges

In reply to Re: Efficiency MySQL question by eric256
in thread [untitled node, ID 308077] by Samn

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.