# Changing player name

**URL:** <https://narrat.discourse.group/t/changing-player-name/130>\
**Category:** Help\
**Created:** [16 September 2023 16:33 UTC](https://narrat.discourse.group/t/changing-player-name/130 "2023-09-16T16:33:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard\_Stevens](https://yyz2.discourse-cdn.com/free1/user_avatar/narrat.discourse.group/richard_stevens/32/205_2.png) [@Richard\_Stevens](https://narrat.discourse.group/u/Richard_Stevens)\
**Post date:** [16 September 2023 16:33 UTC](https://narrat.discourse.group/t/changing-player-name/130/1 "2023-09-16T16:33:25Z")

</div>

So, I’ve just wandered into the wonderful world of Narrat (Always start with flattery) as an escapee from the “Big Game Engine Crisis” happening somewhere and I think this software is amazingly intuitive. The only thing i seem to be missing, or can not find, is the way for the player to change their character name.  
A little help would be appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![Narrat-Admin](https://yyz2.discourse-cdn.com/free1/user_avatar/narrat.discourse.group/narrat-admin/32/429_2.png) [@Narrat-Admin](https://narrat.discourse.group/u/Narrat-Admin)\
**Post date:** [16 September 2023 16:48 UTC](https://narrat.discourse.group/t/changing-player-name/130/2 "2023-09-16T16:48:41Z")

</div>

I replied on Discord before seeing this post, but just to have the answer recorded on the forum, it’s all explained on that page:

> **[Changing the player character | Narrat Documentation](https://docs.narrat.dev/features/changing-player-character.html)**
>
> Here is how to change the player character during gameplay in narrat

Although I am just realising now that this only applies to changing between preexisting characters, if you want to actually edit their name you’ll need to change the config. So it would be something like this:

```auto
main:
  // Store the player's name in a variable
  set data.playerName (text_field "What is your name?")
  // Update the actual character name with that variable
  run reload_config_overrides
  talk player idle "The player should now have the new name"

// Reloads changes to the config, has to be done when the game starts for technical reasons
reload_config_overrides:
  // Edits the config to change the player's name to the name we stored
  set config.characters.characters.player.name $data.playerName

```

In the config the reload label needs to be set so that that `reload_config_overrides` label is played when the game reloads when loading saves:

```auto
saves:
  mode: manual
  slots: 10
  runOnReload: 'reload_config_overrides'

```

You can basically change any value in the game config during gameplay this way, by simply changing values in the `config` object.
