Results 1 to 5 of 5

Thread: Item System

  1. #1
    Soldier
    Join Date
    Jun 2013
    Location
    France
    Posts
    55

    Item System

    Hello Graalians,
    I'm actually creating an Item System but I just need your opinion if it's right thought:

    So I'll use a database and files storage:

    -DATABASE (SQL)
    Table: -playerItem: playerAcc, itemId, itemQuantity
    -itemInfo : itemId, itemName, itemCategory, itemWeapon, itemPrice

    -File:
    So each file will be named by the itemId and will contain info depending on the type of the item.
    Basics will be item description, item freezetime, item damage....

    Is that a good way to do an Item System, how I could do something better?
    (I don't want to use clientr variables as some Developer recommended me)

    Thanks,
    Joe.

  2. #2
    i don't understand why you'd need file storage.

    If you set up the tables correctly, you should be able to contain all the information you need within them.

  3. #3
    Soldier
    Join Date
    Jun 2013
    Location
    France
    Posts
    55
    Because all items won't be only guns or melee. So parameters would be much different if it's an healer item, a pet, a toy or idk, some params will be different so using tables would require so much tables :/ which doesn't seem good on my view.

  4. #4
    Street Boss John's Avatar
    Join Date
    Jun 2013
    Location
    Lebanon
    Posts
    825
    Add an extra row for type?
    -Johnaudi

  5. #5
    Soldier
    Join Date
    Jun 2013
    Location
    France
    Posts
    55
    Quote Originally Posted by John View Post
    Add an extra row for type?
    itemCategory is equal to type :P

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •