#Inventory

1 messages · Page 1 of 1 (latest)

hollow edge
#

If I were to implement a inventory system im confused on how I should go about. Should I store strings of the item names?

wild tusk
#

Make a table for each player’s inventory with each item ig

#

You can store its name with a quantity for how many items a player has or use an ID instead of name

hollow edge
#

im thinking like
local playerItem = {
["Sword"] = { id = "435345345345", desc = "" },
["Bob"] = { id = "645645645654", desc = ""},
}

and like a global server database module script
local ItemDatabase = {
["item_001"] = {
Name = "Sword",
Curr_quantity = 435345345345,
Description = "",
},

["item_002"] = {
    Name = "Bob",
    Rarity = "645645645654",
    Description = "",
},
#

idk what people usually do

#

and idk where to put the server item module

graceful parcel
#

Depends how complex you need the inventory to be