Returning to player-set name after changing it

During the course of my game's story, the player's set name is going to be changed temporarily. I need to figure out how to change it back after that part of the story is done without forcing the player to re-enter their name. I tried setting a variable to $gameActors.actor(1).name like some other threads for other versions of RPGMaker mentioned, but I get an error stating "undefined method "actor" for nil:NilClass" immediately after the player's name is entered when I try to set the variable. The only thing I can think is that the name is stored somewhere else in VXAce than it is in MV, otherwise I don't know why this would be happening.

For the time being, I'm just going to set the player's name. Letting them choose their own name eventually would be nice, but I don't feel like wasting more time trying to figure out how scripts work.
I think the syntax you're using is specifically for MV/MZ. For VXA I believe the correct syntax is:

Ruby:
$game_actors[x].name
I think the syntax you're using is specifically for MV/MZ. For VXA I believe the correct syntax is:

Ruby:
$game_actors[x].name
God I could have sworn I tried that. There must have been something wrong where I was calling it. Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/returning-to-player-set-name-after-changing-it.163726/