Don't know how to do it, using previous threads not helping, bcs node js package usingis no longer relevant as Node.js 4 is unmaintained. Dont know any other way to do it.
MZ Read player Username script?
JS Plugin RequestsHello welcome!
See this:
forums.rpgmakerweb.com
Good luck
Edit:
The Windows OS user will always be the first name registered when it is created, as it creates a folder with that name, the only way to get the display name is through the registry, and I don't believe it works only on Windows 8 or higher.
I'm not sure, but that might be the way, using the command prompt to find the value:
See this:
MZ - need help getting script for getting os user name working
Error Code: Cannot find module './jsnode_modules/user-info/index.js' Require stack: c:\Users\(username)\Documants\RMMZ\(filepath)\/index.html Context: so for a few days now I've been toying around and looking through other threads and over that time I've done the node install and run through...
forums.rpgmakerweb.com
Good luck
Edit:
The Windows OS user will always be the first name registered when it is created, as it creates a folder with that name, the only way to get the display name is through the registry, and I don't believe it works only on Windows 8 or higher.
I'm not sure, but that might be the way, using the command prompt to find the value:
Code:
REG Query "HKCU\Volatile Environment" /v USERNAME
Original thread: https://forums.rpgmakerweb.com/threads/read-player-username-script.140933/