question

Alberto Gomez avatar image
Alberto Gomez asked

How do I get item attributes?

I have set some key and values on the "Attributes" section for some of the items on my catalog.
I need to get this values on my game, but I don't find a way to this. Am I missing something?

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

That would be the CustomData returned for the items in your catalog. At the catalog level, these are the global values you would then apply to all players, so that you can change them in your catalog if needed, and have them affect all players with those items.

Item instances in the player inventory also have a distinct CustomData space, where you can store key/value pairs of data specific to that instance of the item.

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.