# Uppercase when displaying variables in stats screen

**URL:** <https://forum.choiceofgames.com/t/uppercase-when-displaying-variables-in-stats-screen/1560>\
**Category:** ChoiceScript Help\
**Created:** [July 29, 2013, 10:31am UTC](https://forum.choiceofgames.com/t/uppercase-when-displaying-variables-in-stats-screen/1560 "2013-07-29T10:31:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Celtic\_Rune](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/celtic_rune/32/48141_2.png) [@Celtic\_Rune](https://forum.choiceofgames.com/u/Celtic_Rune)\
**Post date:** [July 29, 2013, 10:31am UTC](https://forum.choiceofgames.com/t/uppercase-when-displaying-variables-in-stats-screen/1560/1 "2013-07-29T10:31:00Z")

</div>

I know that if you display a variable in-game you can capitalize the first letter with $!{var}. Do you have some sort of function like that for the stats screen as well? So if you have a string variable with a content of all lowercase letters, but you want to display it in the stats screen with the first letter capitalized. Is that possible?

---

<div class="post-metadata">

**Author:** ![Redgrave](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/redgrave/32/619_2.png) [@Redgrave](https://forum.choiceofgames.com/u/Redgrave)\
**Post date:** [July 29, 2013, 10:44am UTC](https://forum.choiceofgames.com/t/uppercase-when-displaying-variables-in-stats-screen/1560/2 "2013-07-29T10:44:05Z")

</div>

As the stats screen doesn’t make any permanent changes to stats (i.e. everything is reset back to what it was when leaving the stats screen) you can add a bit of code at the top of the stats file:

```

*set var $!{var}

```

This should work, but sorry if I haven’t explained it very well!

---

<div class="post-metadata">

**Author:** ![Celtic\_Rune](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/celtic_rune/32/48141_2.png) [@Celtic\_Rune](https://forum.choiceofgames.com/u/Celtic_Rune)\
**Post date:** [July 29, 2013, 10:52am UTC](https://forum.choiceofgames.com/t/uppercase-when-displaying-variables-in-stats-screen/1560/3 "2013-07-29T10:52:36Z")

</div>

That’s actually really simple…

Thanks a lot 😃

---

<div class="post-metadata">

**Author:** ![Nocturnal\_Stillness](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/nocturnal_stillness/32/100414_2.png) [@Nocturnal\_Stillness](https://forum.choiceofgames.com/u/Nocturnal_Stillness)\
**Post date:** [July 29, 2013, 10:53am UTC](https://forum.choiceofgames.com/t/uppercase-when-displaying-variables-in-stats-screen/1560/4 "2013-07-29T10:53:55Z")

</div>

\*stat\_chart  
text name Name  
Percent health Health

you can also rename a stat on the stats screen

\*stat\_chart  
text name Nickname  
percent health Condition
