|
| 28 Jun 2014 08:56 AM |
Maybe some new templates for where tools go. NEED HELP |
|
|
| Report Abuse |
|
|
| |
|
|
| 28 Jun 2014 09:00 AM |
inventory = {} maxItems = 10 -- change this to how many items you can store currentItems = #inventory
function addItem() if (currentItems < maxItems) then local item = table.insert(inventory, "item") print('Item added.') else print('Inventory already full.') end end
function removeItem() if (currentItems < 1) then print('Nothing to remove') else for i = 1, #maxItems do table.remove(inventory, maxItems[i]) print('Item removed.') end end end
addItem() print(table.concat(inventory, ' '))
I made a basic inventory system. You can modify it for use in GUIs. |
|
|
| Report Abuse |
|
|
|
| 28 Jun 2014 09:03 AM |
| I'll use that, but um, does that change the color or template of any slots or borders of the inventory? Don't think so. But thanks anyways, I'll use that. |
|
|
| Report Abuse |
|
|
|
| 28 Jun 2014 09:05 AM |
| Yeah just make your own inventory slots and adjust it for the GUI. That's just base code. A concept. |
|
|
| Report Abuse |
|
|
|
| 28 Jun 2014 09:08 AM |
| No, no, I don't want a GUI. I can make that easily. For the present inventory, I want to change the color and template/add picture and add different bordercolors to the inventory slots. |
|
|
| Report Abuse |
|
|
|
| 28 Jun 2014 09:11 AM |
| Oh you can't do that. Isn't the backpack part of CoreGUI? |
|
|
| Report Abuse |
|
|
|
| 28 Jun 2014 09:13 AM |
Awesome. -_-
R.I.P THREAD -throws bread gracefully down on floor as an honor of this thread and the brave men and women who supported-
HELP ME WITH THIS THO :3
http://www.roblox.com/Forum/ShowPost.aspx?PostID=138496107 |
|
|
| Report Abuse |
|
|