# 2 Questions: Help with Name and Variable Not Increasing

**URL:** <https://forum.choiceofgames.com/t/2-questions-help-with-name-and-variable-not-increasing/14733>\
**Category:** ChoiceScript Help\
**Created:** [January 31, 2016, 8:01pm UTC](https://forum.choiceofgames.com/t/2-questions-help-with-name-and-variable-not-increasing/14733 "2016-01-31T20:01:30Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheBum](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/thebum/32/70555_2.png) [@TheBum](https://forum.choiceofgames.com/u/TheBum)\
**Post date:** [January 31, 2016, 8:01pm UTC](https://forum.choiceofgames.com/t/2-questions-help-with-name-and-variable-not-increasing/14733/1 "2016-01-31T20:01:31Z")

</div>

Firstly thanks to whoever comments and can help me.

1st Question: I have names that come up along with a ‘input your own name’ and a set surname for all of them. The names that I give work with the surname and they appear on the stats chart right but whenever I do the input name it only shows the input name and not the surname. The code is below.  
`*label FemName *fake_choice #Adelaide *set name "Adelaide Aleyn" #Jocea *set name "Jocea Aleyn" #Eliza *set name "Eliza Aleyn" #Teffan *set name "Teffan Aleyn" #Ryia *set name "Ryia Aleyn" #Input Your Own *input_text name "Aleyn"`

\*ignore the format, it’s right in game

2nd Question: I have a variable “Magic” and whenever I put a code like \*set Magic +15 it doesn’t increase on the stat chart. The game isn’t telling me there’s a bug or wrong code, it just won’t change.

---

<div class="post-metadata">

**Author:** ![daydreamsincolor](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/daydreamsincolor/32/82201_2.png) [@daydreamsincolor](https://forum.choiceofgames.com/u/daydreamsincolor)\
**Post date:** [January 31, 2016, 8:14pm UTC](https://forum.choiceofgames.com/t/2-questions-help-with-name-and-variable-not-increasing/14733/2 "2016-01-31T20:14:19Z")

</div>

For the first question, read the article here [http://choicescriptdev.wikia.com/wiki/Concatenation](http://choicescriptdev.wikia.com/wiki/Concatenation) about joining two variables. You could implement this by creating first name, last name, and full name variables.

For the second, did you create a value for magic in the startup file? (e.g. \*create magic 0)

---

<div class="post-metadata">

**Author:** ![TheBum](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/thebum/32/70555_2.png) [@TheBum](https://forum.choiceofgames.com/u/TheBum)\
**Post date:** [January 31, 2016, 8:25pm UTC](https://forum.choiceofgames.com/t/2-questions-help-with-name-and-variable-not-increasing/14733/3 "2016-01-31T20:25:05Z")

</div>

yea in the startup file I have that and it’s also correctly placed in the stat chart

---

<div class="post-metadata">

**Author:** ![daydreamsincolor](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/daydreamsincolor/32/82201_2.png) [@daydreamsincolor](https://forum.choiceofgames.com/u/daydreamsincolor)\
**Post date:** [January 31, 2016, 8:32pm UTC](https://forum.choiceofgames.com/t/2-questions-help-with-name-and-variable-not-increasing/14733/4 "2016-01-31T20:32:13Z")

</div>

Could you post the code?

It should be working as long as you have something like this:  
`*create magic 0`  
`*set magic +1`  
and then in the stats file (with proper indents)  
`*stat_chart`  
`text magic`  
(or percent magic)

---

<div class="post-metadata">

**Author:** ![TheBum](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/thebum/32/70555_2.png) [@TheBum](https://forum.choiceofgames.com/u/TheBum)\
**Post date:** [January 31, 2016, 8:39pm UTC](https://forum.choiceofgames.com/t/2-questions-help-with-name-and-variable-not-increasing/14733/5 "2016-01-31T20:39:32Z")

</div>

`*create Magic 0 *create Charisma 0`

That’s the startup code and this is the stat\_chart one (with indents not showing up of course)

`*stat_chart text Fullname text Magic`

and this is one of the codes that I put down but it didn’t effect magic yet the arcane one was effected and went up the correct amount

`#Training in magic. It was a bit harder to do since no one in your town possessed this ability but you made do with what you had and benefited from your early exposure. *set Magic +15 *set Arcane +10`

---

<div class="post-metadata">

**Author:** ![UmbraLamia](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/umbralamia/32/9516_2.png) [@UmbraLamia](https://forum.choiceofgames.com/u/UmbraLamia)\
**Post date:** [February 1, 2016, 8:12am UTC](https://forum.choiceofgames.com/t/2-questions-help-with-name-and-variable-not-increasing/14733/6 "2016-02-01T08:12:36Z")

</div>

One I’m about to ask is highly improbable, but… you are sure you didn’t have \*set Magic -15 somewhere later on, did you? I’m asking this because I don’t really see anything wrong here.

---

<div class="post-metadata">

**Author:** ![CJW](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cjw/32/111787_2.png) [@CJW](https://forum.choiceofgames.com/u/CJW)\
**Post date:** [February 1, 2016, 2:57pm UTC](https://forum.choiceofgames.com/t/2-questions-help-with-name-and-variable-not-increasing/14733/7 "2016-02-01T14:57:22Z")

</div>

It’s not likely to be the problem but you should always try and keep all a variable name’s characters as lower case in Choicescript.

---

<div class="post-metadata">

**Author:** ![Destroya](https://avatars.discourse-cdn.com/v4/letter/d/3be4f8/32.png) [@Destroya](https://forum.choiceofgames.com/u/Destroya)\
**Post date:** [February 1, 2016, 3:51pm UTC](https://forum.choiceofgames.com/t/2-questions-help-with-name-and-variable-not-increasing/14733/8 "2016-02-01T15:51:45Z")

</div>

Yes, I do believe that should help aswell. For some reason coding languages (according to my knowledge) don’t like caps.

---

<div class="post-metadata">

**Author:** ![TheBum](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/thebum/32/70555_2.png) [@TheBum](https://forum.choiceofgames.com/u/TheBum)\
**Post date:** [February 1, 2016, 9:24pm UTC](https://forum.choiceofgames.com/t/2-questions-help-with-name-and-variable-not-increasing/14733/9 "2016-02-01T21:24:34Z")

</div>

I’m going to read over it one more time but the first variable to even mention magic is the +15 and immediately after choosing that and then checking, nothing.

@Destroya and @CJW so you suggest just making all of the variables lower case

---

<div class="post-metadata">

**Author:** ![UmbraLamia](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/umbralamia/32/9516_2.png) [@UmbraLamia](https://forum.choiceofgames.com/u/UmbraLamia)\
**Post date:** [February 2, 2016, 4:51am UTC](https://forum.choiceofgames.com/t/2-questions-help-with-name-and-variable-not-increasing/14733/10 "2016-02-02T04:51:29Z")

</div>

Using lower case for all variables is usually the best and least complicated course of action. Of course, when displaying on the stats page, variables can be put in any case you like, even bold or italic if you desire.
