RGSS3: Variable / Accessor instead of Actor's Name

I want to duplicate the Window_NameEdit into a different way, as I want to store the ones I will input in the name edit into a variable or an accessor somewhere in the script. Is there a way to duplicate or shorten name edit into a new window where: it does the following flow of events:

Shows Name Edit ----> User Inputs Name -----> Computer Saves the Name into a Variable ------> Displays Name

So far, from learning RGSS3 into the help file, I was able to achieve displaying the name and duplicating Name Edit, but I can't store it into a string instead of the actor's name.
I dont understand what you mean exactly.

But if you look into Scene_Name, you will find a method called "on_input_ok" :

def on_input_ok @actor.name = @edit_window.name return_sceneendIf you want to to save the input from Window_NameEdit you only need to use the "attr_reader name" variable from Window_NameEdit.
do for example

Code:
class Scene_Name  def on_input_ok    $game_variables[id] = @edit_window.name    return_scene  endend
Basically, you want to make a string input scene?


As Eugene and Shana had said, the storing of the string is not done in the Window_NameEdit, but in Scene_Name.


Storing it into a variable is just a matter of

Code:
var = @edit_window.name
Now the question is, what variable do you want to use? And what do you want to use for displaying it?
I want to make a fake name input scene, so whatever is inputed on that scene, then I can print it out on my own window. I'll try this solution and post what happens.

Original thread: https://forums.rpgmakerweb.com/threads/rgss3-variable-accessor-instead-of-actors-name.25163/