Concatenation of 2 actor names

Is it possible using a script line to concatenate 2 character names into a 3rd character?
For instance \n[1] and \n[2] are concatenated to have character 3 named \n[1]+\n[2]
Yes!
JavaScript:
$gameActors.actor(3)._name = $gameActors.actor(1).name() + $gameActors.actor(2).name()

But that will be case sensitive, so like, if actor 1 is named Steve and 2 Buscemi actor 3 will be named SteveBuscemi

If you want actor 3 to be named Stevebuscemi use this:
JavaScript:
$gameActors.actor(3)._name = $gameActors.actor(1).name() + $gameActors.actor(2).name().toLowerCase()
Thank you, and if I want a space between them?
Steve Buscemi
String concatenation is done with +, and with "" you can type any string, so you can concatenate like this

$gameActors.actor(3)._name = $gameActors.actor(1).name() + " " + $gameActors.actor(2).name().toLowerCase()
Awesome, one last question, is it possible to show the name of a variable, and to change it?
@Indinera you can store the name of a variable inside a variable and show with \v[].
To get the name, I think it is $dataVariables[Id] that will return the name of the variable you want.
But I'm not on my computer to double-check.
But change the name of the variable, I don't think so.

Original thread: https://forums.rpgmakerweb.com/threads/concatenation-of-2-actor-names.121283/