Ok, I'm making an online game, where users can have several weapons of one type. They need to be able to equip them obviously. My problem is that I have no way of disdinguishing between two weapons that are the same....
I have created a link_id column in my database, so that every weapon has a seperate id number! However, my new problem is that if a user has 2 of one weapon, then I need to use the link_id column so that when they equip the weapon, that it is the correct weapon, the one with that link_id number
How would I do this ???
Some background info:
My weapons table (called user_weapons) has 4 columns.
1) id
Id is the players unique number, so that the user is shown their own weapons
2) weapon_id
weapon_id tells me which weapon it is. 1 might be stick, 2 might be a super-mega-hyper radiation emmiter, 3 might be my aunty bernice etc.
3) status
status is either 0 or 1, where 0 is unequiped and 1 is equiped
4) link_id
A number that distinguishes between all weapons, useful for similar weapons. Unfortunatly, I have no idea how to use it
Those are my columns
Can anyone help, or do you need more iunformation?
|