1
General / Inventory system for text based rpg/mud
« on: May 25, 2011, 11:07:11 pm »
Hmmm you may be on to something there... depends on what you think im trying to use it for... my problem is right now im trying to organize my items into 1 database, and the monsters into another... thats relatively simple if done with just variables and strins 8-10 per item each commented in a specifc function that manages them temporarily. My problem is managing my Global Variables that are tied to switching the information from storage unit to storage unit... for example
Moving items from inventory slot to inventory or from inventory to equipment or equipment to inventory or from the loot buffer to inventory, quest slots etc... it takes a ton of nested statements to do it, is there an easier way to manage them and still be able to load individual variables to the save files 1 line at a time for simple reloading upon loading the saved game.
Moving items from inventory slot to inventory or from inventory to equipment or equipment to inventory or from the loot buffer to inventory, quest slots etc... it takes a ton of nested statements to do it, is there an easier way to manage them and still be able to load individual variables to the save files 1 line at a time for simple reloading upon loading the saved game.