by DocRabbit » Thu Sep 13, 2007 2:08 pm
Like the new forum, been DB programming last 4 weeks.
I would setup 2 arrays to do the inventory.
One array to hold the different types of items.
ArrayItem(0)=axe
ArrayItem(1)=sword
ArrayItem(2)=grub
etc...
And the next to indicate positions in your sack.
ArraySackPosition1=ArrayItem(0)
Come up with a default value for empty, and initialize all positions in the sack to that.
Then when you pick-up an item, set its value to the first empty sack position.
With some coding, you could actually arrange your sack items also.
This is just visualization coding, not actual coding above.