Make Variable = Character Name?

Is there a way to make a variable = the name of a character?
So if there is a character called "Ryan"
How can I make variable Name = "Ryan"?

The names of the characters are chosen by the player, so I can't just create variables in advance, but need to link them somehow during the gameplay. Is this possible?

Also, is there a way to then take variable Name and make a different character's name = the same as variable Name? (So you would end up with 2 different characters called Ryan).
You can find things like this in the pinned MZ script call list:

Or for, by example, Googling "rpg maker mz actor name script call"

In fact, the second and third results on that Google search are literally your question, how to store a name into a variable 😛

Several approaches are given here:
Also, for display purposes (e.g. in Show Text or Show Choices) there are text codes:
  • \N[x] = name of actor ID x;
  • \P[x] = name of party member x (\P[1] for leader).

Original thread: https://forums.rpgmakerweb.com/threads/make-variable-character-name.161773/