How to create inventory for items with variables?

How to create inventory for items with variables? For example, the player receives a sword.

This sword has an enchantment level, a quality, a random property.

In inventory mechanics, you can write the name of the inventory and the name of the item.

The most logical option would be to indicate the properties of the item in the name, for example: “GreatSword/LVL4/Excelent/Lifesteal/Burning” or id without words (each property has its own number and location): “03/04/05/02/11”.

But how to decrypt id back to operate with this data?

Hi, instead of your approach which is maybe possible but seemingly extremely difficult to work with, you could use an array (list). You can read about it here Variables - GDevelop documentation