# Player's own name

**URL:** <https://forum.choiceofgames.com/t/players-own-name/2551>\
**Category:** ChoiceScript Help\
**Created:** [July 13, 2014, 5:24am UTC](https://forum.choiceofgames.com/t/players-own-name/2551 "2014-07-13T05:24:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ztash](https://avatars.discourse-cdn.com/v4/letter/z/9dc877/32.png) [@Ztash](https://forum.choiceofgames.com/u/Ztash)\
**Post date:** [July 13, 2014, 5:24am UTC](https://forum.choiceofgames.com/t/players-own-name/2551/1 "2014-07-13T05:24:47Z")

</div>

How can I make a code that enables the player to enter his / her own name or whatever he / she wants the character to be called?

Thank you in advance 🙂

---

<div class="post-metadata">

**Author:** ![AlexClifford1994](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/alexclifford1994/32/55650_2.png) [@AlexClifford1994](https://forum.choiceofgames.com/u/AlexClifford1994)\
**Post date:** [July 13, 2014, 5:28am UTC](https://forum.choiceofgames.com/t/players-own-name/2551/2 "2014-07-13T05:28:05Z")

</div>

In startup when you make all the variables, \*create name “example”  
Then to let a player enter their name, put \*input\_text name  
And then, whenever you want the name to be in the text, write $!{name}

---

<div class="post-metadata">

**Author:** ![fantom](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fantom/32/8537_2.png) [@fantom](https://forum.choiceofgames.com/u/fantom)\
**Post date:** [July 13, 2014, 6:08am UTC](https://forum.choiceofgames.com/t/players-own-name/2551/3 "2014-07-13T06:08:44Z")

</div>

@Ztash I suggest you check out this page: [http://www.choiceofbox.com/tutorials/a-basic-tutorial-on-name-relationship-and-gender-variables/](http://www.choiceofbox.com/tutorials/a-basic-tutorial-on-name-relationship-and-gender-variables/)

the section specifically on naming is about a third of the way down.

---

<div class="post-metadata">

**Author:** ![that1german](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@that1german](https://forum.choiceofgames.com/u/that1german)\
**Post date:** [July 13, 2014, 6:44am UTC](https://forum.choiceofgames.com/t/players-own-name/2551/4 "2014-07-13T06:44:21Z")

</div>

\*input\_text name

Then when you want to input that name into the paragraph, do what AlexClifford said and put squiggly brackets around the variable

---

<div class="post-metadata">

**Author:** ![CitizenShawn](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/citizenshawn/32/1386_2.png) [@CitizenShawn](https://forum.choiceofgames.com/u/CitizenShawn)\
**Post date:** [July 13, 2014, 8:19am UTC](https://forum.choiceofgames.com/t/players-own-name/2551/5 "2014-07-13T08:19:34Z")

</div>

```

*create name "" (put this in startup)

(Put this anywhere)

*label namechoice
What is your name?
*input_text name
Are you sure?
*fake_choice
 #Yes
 #No
  *goto namechoice

Your name is ${name}? Great. 

```

---

<div class="post-metadata">

**Author:** ![Ztash](https://avatars.discourse-cdn.com/v4/letter/z/9dc877/32.png) [@Ztash](https://forum.choiceofgames.com/u/Ztash)\
**Post date:** [July 14, 2014, 1:10pm UTC](https://forum.choiceofgames.com/t/players-own-name/2551/6 "2014-07-14T13:10:18Z")

</div>

Thanks for the help, now it works 🙂
