generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Any way to make the inventory custom? [Diff Colors]

Previous Thread :: Next Thread 
MidnightTraceur is not online. MidnightTraceur
Joined: 23 Oct 2013
Total Posts: 434
28 Jun 2014 08:56 AM
Maybe some new templates for where tools go.
NEED HELP
Report Abuse
MidnightTraceur is not online. MidnightTraceur
Joined: 23 Oct 2013
Total Posts: 434
28 Jun 2014 08:58 AM
Bump.
Report Abuse
TheBoyOnTheBlock is not online. TheBoyOnTheBlock
Joined: 09 Nov 2013
Total Posts: 341
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
MidnightTraceur is not online. MidnightTraceur
Joined: 23 Oct 2013
Total Posts: 434
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
TheBoyOnTheBlock is not online. TheBoyOnTheBlock
Joined: 09 Nov 2013
Total Posts: 341
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
MidnightTraceur is not online. MidnightTraceur
Joined: 23 Oct 2013
Total Posts: 434
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
TheBoyOnTheBlock is not online. TheBoyOnTheBlock
Joined: 09 Nov 2013
Total Posts: 341
28 Jun 2014 09:11 AM
Oh you can't do that. Isn't the backpack part of CoreGUI?
Report Abuse
MidnightTraceur is not online. MidnightTraceur
Joined: 23 Oct 2013
Total Posts: 434
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image