[RMXP] HOW CAN I MAKE THE GAME GET THE USER'S WINDOWS USERNAME?

Posts

Pages: 1
You may be squinting at this question but don't worry, it's more of a fourth wall break type thing. I'm a complete noob and can't work out scripts or plugins so try to simplify it, this is my first game. So during the first gameover I will have 2 choices: leave and return to title screen. I want the "Leave" option to result in a custom popup as a message to the player that breaks the fourth wall and refers to them by their actual windows username.
-G3n
ENV['USERNAME']
works in Vx Ace I just tested, no idea if it works in XP but it would be weird if it didn't.
SunflowerGames
The most beautiful user on RMN!
13323

My user name is User.
InfectionFiles
the world ends in whatever my makerscore currently is
4622
This feels nefarious...
It should be ENV unless you're playing it via mkxp on Linux, then it would be ENV. :P
author=InfectionFiles
This feels nefarious...

Lol the way I said it sounded really sus..
ps. If I did put a virus in it I would probs be banned when publishing the game lol.
Pages: 1