Inventory System, psudocode?

Blitz3D Forums/Blitz3D Programming/Inventory System, psudocode?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

i am looking for pseudocode or code example.

i cant figure out how to create an inventory system for an RPG Style test. My intention is to get some ideas to make it work.

what i wanto to achieve is the following:

1. the character clicks on an it that is on the ground (gold, charm, weapon, etc, any)

2. the items goes to the "Inventory System" (a backpack or a )

3. the item dimension is 1 space, the inventory (the backpack) has 32 spaces

how to display the items in the inventory sorted inside the backpack? maybe this is the more difficult situation for the Inventory System.

thanks for any idea.