Okay, so I am making this game and it is a sort of medieval based browser game. It has tons of customizations, but I can't figure out how to sort them all out.
See, here is my dilemma:
In the game, there is a machine shop that can make different kinds of siege weapons.
One of the weapons is a battering ram.
The battering ram has a ton of customizations. 4 different kinds of wheel, 2 different kinds of braking system, 5 different Ram heads, 4 different things to make it stronger 5 different kinds of support structures.
My problem is that, in the machine shop, someone could select to build 10 battering rams with basic wheels, a hand brake, a steel ram head, a spike in the head, and a square structure.
Then they could make 20 more rams that have steel wheels, grappling hook brakes, a blunt steel head, an archer deck, and a triangular support.
These two different types of battering rams will have different attack and defense strengths and different purposes.
My problem is storing the information of who has how many of what ram. I didn't even list all the combinations. There are hundreds of total combinations.
What would be the best way to store the data saying Player A has 500 of the first kind I listed, 20 of the second kind, and 500 of some other combination, while Player B has something totally different.
I was thinking that maybe each individual weapon could have it's own database with every possible combination in it, and every combination is numbered and in the user's file it would show what numbers the player has. Would this work? Anyone have any ideas for simpler way?
Thank you so much,
-Nick

See, here is my dilemma:
In the game, there is a machine shop that can make different kinds of siege weapons.
One of the weapons is a battering ram.
The battering ram has a ton of customizations. 4 different kinds of wheel, 2 different kinds of braking system, 5 different Ram heads, 4 different things to make it stronger 5 different kinds of support structures.
My problem is that, in the machine shop, someone could select to build 10 battering rams with basic wheels, a hand brake, a steel ram head, a spike in the head, and a square structure.
Then they could make 20 more rams that have steel wheels, grappling hook brakes, a blunt steel head, an archer deck, and a triangular support.
These two different types of battering rams will have different attack and defense strengths and different purposes.
My problem is storing the information of who has how many of what ram. I didn't even list all the combinations. There are hundreds of total combinations.
What would be the best way to store the data saying Player A has 500 of the first kind I listed, 20 of the second kind, and 500 of some other combination, while Player B has something totally different.
I was thinking that maybe each individual weapon could have it's own database with every possible combination in it, and every combination is numbered and in the user's file it would show what numbers the player has. Would this work? Anyone have any ideas for simpler way?
Thank you so much,
-Nick
