Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Inventory Techniques?

Author
Message
wickedly kick it
18
Years of Service
User Offline
Joined: 13th Jul 2006
Location: Fort-worth Texas
Posted: 9th Jul 2007 20:11
i am working on a RPG (not an mmorpg ) and i need help with making an inventory system. I cant think how to do this without thousands of varaibles. any help?
thanks,
cmk

102
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 9th Jul 2007 20:20
Depends. Is it that you want each inventory item do perform a specific task? In that case use scripting (free Lua in Program Announcements, I got it recently, it's really awes). Or, is it that you already have a list of items that you can store, but dont know how to store them? In that case, look into arrays (Types/UDTs will probably help here too).

There's a good tutorial on arrays by Sixty Squares somewhere on this board.

wickedly kick it
18
Years of Service
User Offline
Joined: 13th Jul 2006
Location: Fort-worth Texas
Posted: 9th Jul 2007 20:23
Im going to look into arrays more and see how that could work, then if it doesnt do what i want, i will look into lua
thanks,
cmk

102
wickedly kick it
18
Years of Service
User Offline
Joined: 13th Jul 2006
Location: Fort-worth Texas
Posted: 9th Jul 2007 20:35
Okay, i got it thanks!

102
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 9th Jul 2007 20:47
No problem. Remember that they are very useful in alot of situations, not just Inventory

BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 9th Jul 2007 22:14
Here's one I prepared earlier Asset Management tutorial...

http://www.thegamecreators.com/data/newsletter/newsletter_issue_28.html#9

Gil Galvanti
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 9th Jul 2007 22:27
Also look into types with arrays.


Login to post a reply

Server time is: 2024-09-27 00:26:47
Your offset time is: 2024-09-27 00:26:47