Inventory System, psudocode?

Blitz3D Forums/Blitz3D Programming/Inventory System, psudocode?

matthews_30(Posted 2006) [#1]
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.


lo-tekk(Posted 2006) [#2]
It's something that surely lurks in the codearchives, but since there's no search...Here i repost mordy's inventory system:




matthews_30(Posted 2006) [#3]
wow! this is excellent!

i am going to check this code, it seams to be exactly as what i needed!

thanks a lot!


matthews_30(Posted 2006) [#4]
i am sorry...

would you please tell me if there is somewhere i can get the media? i am a programmer trying to get somebody in the team, right now i dont handle graphic stuff :(

please.

many thanks.

p.s. i sent an email to the author (congratulationsm thanks and requesting media if available) but the mailbox is not available :(


Andy(Posted 2006) [#5]
>would you please tell me if there is somewhere i can get
>the media? i am a programmer trying to get somebody in the
>team, right now i dont handle graphic stuff :(

Well, there is no time like the present to start doing graphics. Nothing fancy, just placeholders until you find that graphics artist.


Andy


lo-tekk(Posted 2006) [#6]
Okay, here's the zip:

http://files.to/get/40121/861/mordy_inventory.zip


Good luck !