Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What knowledge do I need in order to create an Inventory System?

Asked by 7 years ago

Hey,

I have asked this question a few times in the ROBLOX forums, I have also made requests in return for R$, but never actually got anywhere with what has been provided.

This has motivated me to actually start working on an inventory system myself, but I'm unsure about the level of scripting needed, or what aspects are needed. I have pretty much all the basics, and have some idea how an inventory works, but I would like to get some links from somebody who already worked with an Inventory System.

Thanks,

1 answer

Log in to vote
1
Answered by
Azarth 3141 Moderation Voter Community Moderator
7 years ago
Edited 7 years ago

It really depends on how much you know, but more importantly how much you have created. With each creation comes experience and the problem-solving capabilities to tackle the problems you will have. I sometimes seek out information for how things are done on other game platforms. In the end, it's the same thought process, just different code. For instance, I look for topics on projects in Unity and Gmod when there's no information on ROBLOX.

Since ROBLOX made the UIConstraint system it would make the grid process easier.

If you're going to be able to search for items, then you're going to need to use string patterns and gmatch.

You'll need to create stats to track each item and their quantity, as well as save those later.

You'll need to equip and or drop items from the GUI to the world or player.

I would also take a look at how ROBLOX created their PlayerList GUI. The way they use tables is a good way to organize each item you index in your GUI.

In the end, it's just an ImageButton and a number that tracks what you have based on a stat. Whatever function you end up tying to that ImageButton is simply based on whether that stat is more than 0.

0
WOW I had no idea ROBLOX added grid layouts, this is so handy, thanks! I know how to equp/unequip or drop items into the workspace, probably the only thing I am having trouble with is picking items up and actually placing them into the empty slots within the inventory. excellentAnarchy 50 — 7y
0
I was really just thinking about something of this nature: http://i.imgur.com/P3VlWxd.jpg It seems quite simple, there are no weight or size restrictions on items, each item takes up a single slot, can be dropped, equipped and rearranged within the inventory. excellentAnarchy 50 — 7y
Ad

Answer this question