A very beginner question.

First I would like apologize for asking this question, but I have searched around and could not find the answer. I am wanting to have a ID naming convention where data could be drawn–almost like combining list and layering

For example, you have an ID of 213606532

which would tell me the variables where the 2=female, 1=Caucasian, 3=likes hamburgers, 60 = strength,65 =int, 32=speed. (I would have a list to define these variables)

So an ID of 112705545 would tell me this is 1=male, 1=Caucasian, 2=likes chicken, 70 = str, 55=int, 45=speed.

To expand I would want to do a bool to determine if “variable 3” = like chicken (or something to that extent) So this ID would always be part of this object --in this case a player or enemy.

So my question is --1) is this possible --only looking at the 3rd number 2) What is this function called so I could do more research. (This is the hardest part it is really hard to search for something when you don’t know what to search.)

The main reason I want to do this is because I want to have a ‘MasterID’ and just bring in the variables. Additionally, I think this ID would help me in the future. The ID that was created at creation would always be stored. I can then compare the new ID to the old id to see if any shenanigans occurred. In the first example, if I see an orginalid of 213606532 with the updated ID of 213657199 --i could see the speed of this character went from 32 to 99, which in my game would be impossible which = shenanigans.

This is one example of implementation of this–

I hope this makes sense, and thank you very much for your help.

You’re just looking for substrings. This page should cover it:

If this is data in a multiplayer game you should follow the first two rules of game servers:
1)Never trust the client, and
2)Never trust the client.

The server should be the authority, and the player just goes with the program.

Thank you for this.