# Capitalizing "text" in the stats screen

**URL:** <https://forum.choiceofgames.com/t/capitalizing-text-in-the-stats-screen/43899>\
**Category:** ChoiceScript Help\
**Created:** [September 14, 2018, 4:36pm UTC](https://forum.choiceofgames.com/t/capitalizing-text-in-the-stats-screen/43899 "2018-09-14T16:36:31Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Avery\_Moore](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/avery_moore/32/57275_2.png) [@Avery\_Moore](https://forum.choiceofgames.com/u/Avery_Moore)\
**Post date:** [September 14, 2018, 4:36pm UTC](https://forum.choiceofgames.com/t/capitalizing-text-in-the-stats-screen/43899/1 "2018-09-14T16:36:31Z")

</div>

So… I’m probably over-complicating things a lot more than I need to, but I would be REALLY happy if someone could give me a solution to this problem.

Basically, I’m adding certain features about the character’s appearance, like for instance, hair colour. And I want the colour of the hair to be capitalized.

Choice would look something like this:

```
What is your hair colour?

*choice
  #Black
    *set Hair "black"
  #Brown
    *set Hair "brown"
  #Blonde
    *set Hair "blonde"

```

Now, when this shows upon the stats screen, I want it to show as:

```
Hair: Blonde

```

instead of:

```
Hair: blonde

```

I do know how to do this in game. Just put:

```
Hair: $!{Hair}

```

But on the stats page, I’m using the traditional:

```
text Hair

```

So, does anyone know if there is anyway to change the “text Hair” to make the hair colour show up with a capital letter?

To clarify, I do know that I could just code the word to begin with a capital letter, ie:

```
*set Hair "Blonde"

```

But I would prefer not to do this, as I’ll be mentioning hair colour in the game, and I don’t want it to appear as capitalized when I do.

Also, yes, I could always just change the stats screen, so the stats would be written as,  
“Hair: $!{Hair}” instead of “text Hair”, but I’d rather not do this because I prefer the layout the other way. 😋

---

<div class="post-metadata">

**Author:** ![Carlos.R](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/carlos.r/32/75837_2.png) [@Carlos.R](https://forum.choiceofgames.com/u/Carlos.R)\
**Post date:** [September 14, 2018, 4:49pm UTC](https://forum.choiceofgames.com/t/capitalizing-text-in-the-stats-screen/43899/2 "2018-09-14T16:49:57Z")

</div>

Put them into two variables, then (one for lowercase and one for capital)?

---

<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:** [September 14, 2018, 4:56pm UTC](https://forum.choiceofgames.com/t/capitalizing-text-in-the-stats-screen/43899/3 "2018-09-14T16:56:23Z")

</div>

Just do $!{hair} outside of a stat chart.  
Edit: NVM, missed that you don’t like this. Don’t think there’s any (decent) alternatives.

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [September 14, 2018, 4:57pm UTC](https://forum.choiceofgames.com/t/capitalizing-text-in-the-stats-screen/43899/4 "2018-09-14T16:57:06Z")

</div>

~~Remove the !  
! Capitalizes the displayed thing  
Two ! puts everything in capitals~~  
Edit nvm missread what you wanted.  
Mnn

~~Have you tried  
text Hair $!{hair}  
Would that even work?~~

Edit2 ffs i can’t read today  
_curls up_

---

<div class="post-metadata">

**Author:** ![Avery\_Moore](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/avery_moore/32/57275_2.png) [@Avery\_Moore](https://forum.choiceofgames.com/u/Avery_Moore)\
**Post date:** [September 14, 2018, 5:01pm UTC](https://forum.choiceofgames.com/t/capitalizing-text-in-the-stats-screen/43899/5 "2018-09-14T17:01:04Z")

</div>

> [@Carlos.R](#):
>
> Put them into two variables, then (one for lowercase and one for capital)?

That would probably be the best solution, if there’s no way to edit the “text Hair”. Still, I am ever so slightly reluctant to do this, because the MC will have the option to dye their hair later in the game, and I’m worried that I’ll remember to change one variable and forget to change the other. Still, it’s a very good back up option. Thank you! 😁

> [@CJW](#):
>
> Just do $!{hair} outside of a stat chart.

No, it’s the opposite. I want the word to be capitalized in the stat chart, but I don’t want it to be capitalized outside of the stat chart. 😋

---

<div class="post-metadata">

**Author:** ![catorrina](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/catorrina/32/119362_2.png) [@catorrina](https://forum.choiceofgames.com/u/catorrina)\
**Post date:** [September 14, 2018, 5:02pm UTC](https://forum.choiceofgames.com/t/capitalizing-text-in-the-stats-screen/43899/6 "2018-09-14T17:02:04Z")

</div>

I don’t have the IDE to play around but you could always do a \*temp on the stat\_chart page that capitalizes the thing

Does setting a temp variable as $!{hair} work?

```
*temp hair_stat "$!{hair}" 

```

Or something (I forget if/how to bounce strings between variables right now, heh…)

---

<div class="post-metadata">

**Author:** ![Avery\_Moore](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/avery_moore/32/57275_2.png) [@Avery\_Moore](https://forum.choiceofgames.com/u/Avery_Moore)\
**Post date:** [September 14, 2018, 5:04pm UTC](https://forum.choiceofgames.com/t/capitalizing-text-in-the-stats-screen/43899/7 "2018-09-14T17:04:24Z")

</div>

> [@MeltingPenguins](#):
>
> Have you tried
> 
> ```choicescript
> text hair $!{hair}
> 
> ```

As far as I’m aware, putting a word after “hair” would actually change the word “hair”, rather than the actual hair colour. So, let’s say the hair colour was black. If you put:

```choicescript
text Hair $!{Hair}

```

It would show up as:

```choicescript
Black: black

```

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [September 14, 2018, 5:05pm UTC](https://forum.choiceofgames.com/t/capitalizing-text-in-the-stats-screen/43899/8 "2018-09-14T17:05:28Z")

</div>

Nevermind me, thinking is not my thing today.  
I KNOW i know the solution.  
Give me an hour to get my mind in order

---

<div class="post-metadata">

**Author:** ![Avery\_Moore](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/avery_moore/32/57275_2.png) [@Avery\_Moore](https://forum.choiceofgames.com/u/Avery_Moore)\
**Post date:** [September 14, 2018, 5:07pm UTC](https://forum.choiceofgames.com/t/capitalizing-text-in-the-stats-screen/43899/9 "2018-09-14T17:07:11Z")

</div>

> [@catorrina](#):
>
> I don’t have the IDE to play around but you could always do a \*temp on the stat\_chart page that capitalizes the thing
> 
> Does setting a temp variable as $!{hair} work?
> 
> ```choicescript
> *temp hair_stat "$!{hair}" 
> 
> ```
> 
> Or something (I forget if/how to bounce strings between variables right now, heh…)

Ah! That would actually be perfect! That way I wouldn’t have to worry about having two separate stats for each variable. Thank you! 😁

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [September 14, 2018, 5:27pm UTC](https://forum.choiceofgames.com/t/capitalizing-text-in-the-stats-screen/43899/10 "2018-09-14T17:27:50Z")

</div>

I must ask:  
Why DO you want it as a stat\_chart instead of, let’s say

```
Hair: $!{hair}
*stat_chart
   text strength Strength

```

it would display as

```
Hair: Color
Strength: X

```

---

<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:** [September 14, 2018, 5:42pm UTC](https://forum.choiceofgames.com/t/capitalizing-text-in-the-stats-screen/43899/11 "2018-09-14T17:42:45Z")

</div>

I think I get why: I’m the same way as @Avery_Moore, I think! When it’s in a stat chart it’s indented slightly differently than when it’s out, so it won’t line up with everything else in the stats screen! That always bothers me so I try to code around it too XD

---

<div class="post-metadata">

**Author:** ![Avery\_Moore](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/avery_moore/32/57275_2.png) [@Avery\_Moore](https://forum.choiceofgames.com/u/Avery_Moore)\
**Post date:** [September 14, 2018, 6:29pm UTC](https://forum.choiceofgames.com/t/capitalizing-text-in-the-stats-screen/43899/12 "2018-09-14T18:29:57Z")

</div>

> [@rinari](#):
>
> I think I get why: I’m the same way as @Avery_Moore, I think! When it’s in a stat chart it’s indented slightly differently than when it’s out, so it won’t line up with everything else in the stats screen! That always bothers me so I try to code around it too XD

Yeah, that’s exactly it. I like the indent. 😋
