Go to the third tab of the event commands. The third one down is Name Input Processing. Use it. Then when that event runs, it will call the name input screen.
You can then access the name they use in messages with \n[actor_id], so if it is the first actor in the database, then \n[1] and so on.