Printing player's name using print script

Hello. I want to get player's name using Name Input Processing, then using the script in the event commands to print the name.
1725461718473.png
\n[actor ID] lets you print the name on the message window.
\n[actor ID] lets you print the name on the message window.
I want to print it to a message box just like the on in the picture. When I type \n[2] it gives SyntaxError when I run the code.

I want to print it to a message box just like the on in the picture. When I type \n[2] it gives SyntaxError when I run the code.
Nevermind. I figured it out. I made Name Input Service change the name of actor 2, then printed it using the following command:

actor_name = $game_actors[2].name
print "Hello, #{actor_name}!"
Try \\[2]

Edit: Oh, you were just a bit faster. If yours works, then use that. 😛
$game_party.actors[actor index].name will let you retrieve a party member's name.

I wonder why you need to display the name on a popup window instead of an in-game window.
I wonder why you need to display the name on a popup window instead of an in-game window.
Oh, I know! I know! Cause they didn't try it yet, so they don't know yet what kind of issues that brings along. Like it cancels full-screen. It can also trigger virusscans or other safety features to quarantine your game. (If not for the developer themselves, then still for some of their players.) There could be more issues. but those are the ones I know.

Yet there are good reasons to do this. Or I know at least one...
Testing!!

It is a pain in the but to check variables, switches, names, skills etc etc and a popup might give you a quick insight of the current stats. I do it all the time. But never in a released game, though.
Oh, I know! I know! Cause they didn't try it yet, so they don't know yet what kind of issues that brings along. Like it cancels full-screen. It can also trigger virusscans or other safety features to quarantine your game. (If not for the developer themselves, then still for some of their players.) There could be more issues. but those are the ones I know.

Yet there are good reasons to do this. Or I know at least one...
Testing!!

It is a pain in the but to check variables, switches, names, skills etc etc and a popup might give you a quick insight of the current stats. I do it all the time. But never in a released game, though.
I'm planning to use it for OneShot like fourth wall breaks. Not for main dialogue.
I'm planning to use it for OneShot like fourth wall breaks. Not for main dialogue.
Then best don't use actual popups. Try to fake it in-window, but with pop-ups in the screen, instead of for real.

If you game has actual popups, this will raise the risk of so many issues. Idk about XP, but in general popups can be blocked by security software. Or by mistake like adblockers or something (more likely by MV and up, because those play basically in a browser) When they're blocked, your player won't see them and your game is shown incomplete.

(Edit: Popups being blocked is probably not an issue for XP, since it doesn't run in a browser)

Another thing with popups, is that they are generally experienced as annoying. When you normally get a popup, it mostly means one of two things:
- You need to fill something in (or agree to a huge file with legal stuff and/or cookies)
- You have an error, something went wrong

Did you know this? In Disney World, they have artificial odors, coming from perfume dispensers all over the place. (This is on-topic, I promise...) The odors spread trough the park, are carefully designed to trigger memories of happiness. They know that most memories of baking cookies are nice memories. So when people smell baking cookies, they regain that feeling of happiness, even without knowing why.

When people play your game, and your game has occasional popups, people will get that startling "Oh no" feeling every time they hear the notification sound and see that window popup. Even if you're game in enjoying and fun, people might still experience it as annoying, because that feeling is connected to the sound and the visuals of a popup in our minds. People will be annoyed by your game, and not even know why.

If you can recreate it in-window in the game, with a different window than the actual popup and a different notification sound than the windows defaults, all those problems go away. If you can't, then maybe you should reconsider the idea of popups.

Don't get me wrong, I like the idea. It is not a bad idea to show those notifications to the player. Just don't use real popups. Fake them.

Sorry for the long reply. I hope you find it useful.

Original thread: https://forums.rpgmakerweb.com/threads/printing-players-name-using-print-script.171667/