Section 3: Lecture 23: Item ID Explained

When using UUIDs couldn’t we create our own custom ID system that have defined fields that tell the developer what the object or item is?

Like instead of generating a completely random UUID could I just define a system that takes parameters and assigns ID values to the given fields. For example a basic custom UUID for Items might look like this: ItemType-Rarity-Level-Instance. So once implemented a white rarity level 3 sword found in chapter 1 level 10 UUID would look like this: SW01-RTWT-LV03-0110. Or am I over thinking this, but wouldn’t having an ID system like this make it easier to find objects by rarity, type, level or instance by just looking at the UUID of the item?

Just a thought.

1 Like

As long as you ensure that the IDs are unique, you could use such a method.

2 Likes

Privacy & Terms