Jump to content

Is the player name menu hard coded?


WastedTimeYT

Recommended Posts

I am currently trying to find out a way to make a kind of password kind of thing to open containers. I was trying to make it with message boxes that when you press a key it prints it onto the text into the message box. I then realized that the player name menu does just that. It allows you to type anything and saves what you typed as &PCName; which can be used in dialogue. I was wondering if there's anyway to edit this menu or is it just hard coded? Thanks in advance.

Link to comment
Share on other sites

If using the JIP NVSE plugin is not out of the question, it has a function (ShowTextInputMenu) for accepting text input from the player, which you can use for any purpose you want.

 

Otherwise, if you want to use the player name menu, you can temporarily save the player's name, open the menu with GetPlayerName, save the newly entered value and restore the player name when you're done with SetName.

 

The drawback is that SetName does not update the internally kept player name for UI purposes, so whatever you entered in the name menu will show up instead of the player name in the pipboy. The name will not be restored fully until you reload your game. I don't know if this also applies when the name is used in dialogue.

 

You can restore the name in the pipboy by using SetUIString with the path "StatsMenu/GLOW_BRANCH/stats_status_container/stats_player_name/string", but please not that the value contains both the name and current level (as shown below the vault boy ragdoll.) You'll have to construct a string with both values before setting it. And then you run into issues with localization, if the user is playing in a different language than you are.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...