# Coding in name

**URL:** <https://forum.choiceofgames.com/t/coding-in-name/74071>\
**Category:** ChoiceScript Help\
**Created:** [February 17, 2020, 9:50pm UTC](https://forum.choiceofgames.com/t/coding-in-name/74071 "2020-02-17T21:50:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nostalgiafan](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/nostalgiafan/32/149943_2.png) [@Nostalgiafan](https://forum.choiceofgames.com/u/Nostalgiafan)\
**Post date:** [February 17, 2020, 9:50pm UTC](https://forum.choiceofgames.com/t/coding-in-name/74071/1 "2020-02-17T21:50:08Z")

</div>

Ok so i looked at the help guides for this but i am still stuck i keep getting error messages or messages that say i have to many spaces or indents and then i cant get to the next part of the story so i really have no idea what im doing wrong here i deleted it all and just put input\_text name at this point

---

<div class="post-metadata">

**Author:** ![rinari](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rinari/32/86277_2.png) [@rinari](https://forum.choiceofgames.com/u/rinari)\
**Post date:** [February 17, 2020, 10:07pm UTC](https://forum.choiceofgames.com/t/coding-in-name/74071/2 "2020-02-17T22:07:19Z")

</div>

```
What is your name?
*choice
   #Bob.
       *set name "Bob"
   #Dylan.
       *set name "Dylan"
   #Choose something else.
       *input_text name

```

Indents should have 4 spaces in them each time you indent, and look roughly like what I put above. You need to make sure you have a variable for “name” in your startup.txt file and that each of your choices \*goto a label if you have errors about falling out of the choice.

Based on your last question, if someone inputted their text name “Sarah,” you would have something like:

```
*if (name = "Sarah")
   Text talking about Sarah.

```

However, that is a lot of work to do for input\_text because of how many different variations people could input, so you’d be better off having special reactions to the actual name choices you provide rather than relying on input\_text.

---

<div class="post-metadata">

**Author:** ![Nostalgiafan](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/nostalgiafan/32/149943_2.png) [@Nostalgiafan](https://forum.choiceofgames.com/u/Nostalgiafan)\
**Post date:** [February 17, 2020, 10:37pm UTC](https://forum.choiceofgames.com/t/coding-in-name/74071/3 "2020-02-17T22:37:51Z")

</div>

Yeah im planning for reactions with the given names do i need to put goto something anywhere? and if that how it should be spaced? sorry for the questions

---

<div class="post-metadata">

**Author:** ![Nostalgiafan](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/nostalgiafan/32/149943_2.png) [@Nostalgiafan](https://forum.choiceofgames.com/u/Nostalgiafan)\
**Post date:** [February 17, 2020, 11:00pm UTC](https://forum.choiceofgames.com/t/coding-in-name/74071/4 "2020-02-17T23:00:24Z")

</div>

Something i keep getting are tabs and spaces appear on the same line

---

<div class="post-metadata">

**Author:** ![trevers17](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/trevers17/32/127415_2.png) [@trevers17](https://forum.choiceofgames.com/u/trevers17)\
**Post date:** [February 18, 2020, 12:22am UTC](https://forum.choiceofgames.com/t/coding-in-name/74071/5 "2020-02-18T00:22:23Z")

</div>

That means your indentation isn’t consistent. You can only use tabs or spaces, not both.

These links should provide you with a bit more information on correctly using Choicescript.

> [@Master List: Links for Beginners](https://forum.choiceofgames.com/t/master-list-links-for-beginners/21872):
>
> Since this gets asked a lot I thought I’d try and create a master list of links for beginners. If anyone wants to add links to the list please feel free to since I’m making this wiki format. [Start here for newcomers](https://www.choiceofgames.com/make-your-own-games/choicescript-intro/)[The Wiki](http://choicescriptdev.wikia.com)[ChoiceScript Basic Tutorial](http://choicescriptdev.wikia.com/wiki/A_Basic_Tutorial) on wiki [RETowers’ Tutorial](https://forum.choiceofgames.com/t/the-beginners-guide-to-choicescript/9866) by @RETowers[Lglasser’s Tutorial](https://forum.choiceofgames.com/t/choicescript-full-tutorial-finished/16130) by @Lglasser Dedicated ChoiceScript Development Tools You do not need to download or update ChoiceScript when using either of these tools. [Chronicler](https://forum.choiceofgames.com/t/tool-chronicler-choicescript-visual-code-editor/6811) Visual Code Editor by @Ben…
