WastedTimeYT Posted May 11, 2016 Share Posted May 11, 2016 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 More sharing options...
Ladez Posted May 11, 2016 Share Posted May 11, 2016 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 More sharing options...
WastedTimeYT Posted May 12, 2016 Author Share Posted May 12, 2016 Thanks I'll try using JIP, I didn't know they add such a function. This should save me alot of time. Again thanks. Link to comment Share on other sites More sharing options...
WastedTimeYT Posted May 12, 2016 Author Share Posted May 12, 2016 Thank you very much! I tried out some things and actually got it working fully. It even plays sound when you get something right or wrong. I'll be making a little tutorial for it in a bit. Link to comment Share on other sites More sharing options...
sullyvanj93 Posted May 12, 2016 Share Posted May 12, 2016 sounds like a pretty cool feature. nice idea! Link to comment Share on other sites More sharing options...
Recommended Posts