Jump to content

database normalization


Yeodan

Recommended Posts

I'm having some trouble normalizing my database.

I think everything is where it's supposed to be, but I'm not entirely sure.

 

I'm making a MMORPG browser game. Meaning I will have a lot of players.

There will be diffrent places in my game, a player can have a storage in each location. In that storage a player can store items, a player can also have items in his backback or items equipped. Items can also be moved between location or equipped/unequipped, stored/unstored, ...

Each location has a limited capacity of items it can hold.

There are 3 main diffrent types of items, weapons, armor and other items.

Weapons have 2 types, 1 hand and 2 handed.

Armor has quite a few types, head, body, hands, feet, ...

other items don't have types, just names

 

 

So this is what I have:

 

table Items

itemNumber (unique value and primary key)

playerNumber (the unique number of the player)

itemName (the name of the item)

itemType (weapon+type/armor+type/other)

itemPlace (backpack/equipped/location)

itemSize (the size of the item)

itemQuantity (how many of the item the player has)

 

table Armor

itemNumber

itemDefense

 

table Weapons

itemNumber

itemMinimumDamage

itemMaximumDamage

itemSpeed

itemRange

itemLevel

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.