question

brendan avatar image
brendan asked

How do I manage items within items?

scourgey
started a topic on Thu, 17 September 2015 at 6:50 AM

I would like to have an item that functions like a bag that can store multiple items within there.

What would be the best way to perform such as task?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

1 Comment
Brendan Vanous said on Thu, 17 September 2015 at 7:05 PM

There are a few ways you could do this. One would be by setting Custom Data on the inventory item instances, to state what other object they are contained by. Alternately, you could use the Character system for this, granting a Character to a player to represent the "bag", and moving the inventory items to the Character.

Brendan

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.