Hi all
I have a question regarding hashtables. I have been working on trying to create a simple inventory for my game, and for that I have looked through the different topics and caps related to this. Unfortunately they didn't completely solve my problem...
Instead of showing the items as sprites in my inventory, I want a list with item names and amount held. For this I was planning to use a hashtable. But how do I use the "Load from file" feature when creating the hashtable? I have tried loading an INI file and making the hashtable from that, but it gives me trouble regarding values. (It keeps saying "0" even when I pick up items.)
Creating keys on the fly when picking up items works, but I'd like to be able to somehow open the hashtable list somewhere so I can manage inventory more easily, or I fear I will loose track of what I am doing.
How do I make the text show a list of all keys with a value above 0? I tried using the "NewLine" command, but the text still only shows the final name on the list.
Showing the cap would probably be the easiest, so here is my embarrassing example:
http://www.mediafire.com/?j1im58d0v310727
Thanks, I hope I'll be able to understand all these things better one day.