How to make a game inventory?
Hi everybody.
I am currently making a 2D RPG in Turbo Delphi. The basic system of the game uses a text file for saving. However I have read up on how to create a inventory for a character in the game, but nothing so far has been helpful.
I would like to use a database to store ALL the items that can be used in the game, I have already made one in MS access and also created a second table to hold equipped items. But thats as far as I have gotten with the inventory.
I have no idea how to use a database in Delphi can any body help.
PS: I also know how to use object orientated programing, this I have used to create a small client based program ("storing" not "Reading") data such as client name, phone number, email, etc. This stored multiple clients data, but only in fields. Thus closing the application would loss all the clients data.
http://www.google.com/search?q=delphi+sql
You'll need to use some kind of data adapter to load your access database and allow you to run queries on it. Insert, delete, select.
Try this http://www.databasedev.co.uk/microsoft-access-and-borland-delphi.html
You'll need to use some kind of data adapter to load your access database and allow you to run queries on it. Insert, delete, select.
Try this http://www.databasedev.co.uk/microsoft-access-and-borland-delphi.html
Thanks.
These sites are just what i have been looking for, hope that I can understand integrating SQL into Delphi :D
Question: has anybody built an inventory system for a game, preferably in Delphi but not limited to Delphi?
Thanks.
These sites are just what i have been looking for, hope that I can understand integrating SQL into Delphi :D
Question: has anybody built an inventory system for a game, preferably in Delphi but not limited to Delphi?
Thanks.
O.o I'm out on deep water here.. ( I belong to the newbie forum ;O ) but I'm trying to make a small rpg and decided to use a single-linked list with iterators for the inventory. For the list class I use a template so I can send different datastructures to it.
Databases and SQL is too advanced for me yet.
Databases and SQL is too advanced for me yet.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement