I plan to make a Diablo style RPG, with the creatures, dungeons, and hundreds of items that the name brings. I have about 30 sword models and want to implement them into the game. I just want to know how I can do this! the UI is programmed and everything. I would like to have an item class that adds the specified stats the the character that are related to the item ID and don’t know how to start. All help is appreciated!
you will want a base class which is fairly simple. it would really just have a list of structs.
that struct should contain information like:
item ID
item stats
the mesh assigned to that item etc.
so that way you can easily look through the list of structs for the ID and then get all of the stats assigned to that ID.
it might be a little heavy on the editor scripting, but it should give you a good idea of how to build something to meet your needs