# \[Help\] Stat Description Issue

**URL:** <https://forum.choiceofgames.com/t/help-stat-description-issue/33075>\
**Category:** ChoiceScript Help\
**Created:** [December 9, 2017, 4:58am UTC](https://forum.choiceofgames.com/t/help-stat-description-issue/33075 "2017-12-09T04:58:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Master\_Rhokai](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/master_rhokai/32/43432_2.png) [@Master\_Rhokai](https://forum.choiceofgames.com/u/Master_Rhokai)\
**Post date:** [December 9, 2017, 4:58am UTC](https://forum.choiceofgames.com/t/help-stat-description-issue/33075/1 "2017-12-09T04:58:13Z")

</div>

Hi much like many users, I am new to the ChoiceScript. After scrolling through many forums I couldn’t come across a fix for this issue so I’m posting it here.

I liked the idea from Choice of Robots how it would display a description next to wealth like so:  
Wealth: 4 (Getting By)

```
Your Stats
    
  
*stat_chart
  percent Leadership
  percent Health
  opposed_pair Sane
    Mad
  opposed_pair Strength
    Weakness
  opposed_pair Bravery
    Cowardess
  
  text "Unknown" Name
  text "Unknown" Gender
  text Intelligence
  text Finesse
  text Contempt
  text Wealth Wealth : ${wealth} ${WealthTag} 
  text Renown
  text "Who?" Known as
  

```

Unfortunately The above code instead makes it display this:

![Capturel](https://global.discourse-cdn.com/choiceofgames/original/3X/4/d/4d243b5adf97a4c917732fcfae82d39b0d4b5dda.PNG)

I just need to (re)move the additional number stat from “Wealth” that is shown.

Any help is much appreciated. Thank you in advance. 😉

---

<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:** [December 9, 2017, 5:02am UTC](https://forum.choiceofgames.com/t/help-stat-description-issue/33075/2 "2017-12-09T05:02:07Z")

</div>

I think you dont need the `text` bit at most bits here.

`Wealth : ${wealth} ${wealthtag}`

Should do

---

<div class="post-metadata">

**Author:** ![Master\_Rhokai](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/master_rhokai/32/43432_2.png) [@Master\_Rhokai](https://forum.choiceofgames.com/u/Master_Rhokai)\
**Post date:** [December 9, 2017, 6:16am UTC](https://forum.choiceofgames.com/t/help-stat-description-issue/33075/3 "2017-12-09T06:16:33Z")

</div>

Removing text comes with the error:

> invalid line; this line should start with ‘percent’, ‘text’, or ‘opposed\_pair’

and doing

> text Wealth : ${wealth} ${wealthtag}

Displays this:  
 ![Capture2](https://global.discourse-cdn.com/choiceofgames/original/3X/c/2/c2fec3e52f7c61ee98bd3398082713a7c6b50c46.PNG)

---

<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:** [December 9, 2017, 7:17am UTC](https://forum.choiceofgames.com/t/help-stat-description-issue/33075/4 "2017-12-09T07:17:45Z")

</div>

What does your ${wealthtag} variable do? Just that by itself, I mean.

---

<div class="post-metadata">

**Author:** ![DUNGEON\_MASTER](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/dungeon_master/32/56675_2.png) [@DUNGEON\_MASTER](https://forum.choiceofgames.com/u/DUNGEON_MASTER)\
**Post date:** [December 9, 2017, 7:37am UTC](https://forum.choiceofgames.com/t/help-stat-description-issue/33075/5 "2017-12-09T07:37:55Z")

</div>

> [@Master\_Rhokai](#):
>
> Your Stats
> 
> \*stat\_chart  
> percent Leadership  
> percent Health  
> opposed\_pair Sane  
> Mad  
> opposed\_pair Strength  
> Weakness  
> opposed\_pair Bravery  
> Cowardess
> 
> text “Unknown” Name  
> text “Unknown” Gender  
> text Intelligence  
> text Finesse  
> text Contempt  
> text Renown  
> text “Who?” Known as
> 
> \< Indentation ends here \>
> 
> Wealth : ${Wealth} ${WealthTag}

I removed the text before wealth, deindented, and put it out of the stat\_chart

---

<div class="post-metadata">

**Author:** ![Master\_Rhokai](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/master_rhokai/32/43432_2.png) [@Master\_Rhokai](https://forum.choiceofgames.com/u/Master_Rhokai)\
**Post date:** [December 9, 2017, 8:47am UTC](https://forum.choiceofgames.com/t/help-stat-description-issue/33075/6 "2017-12-09T08:47:43Z")

</div>

the ${WealthTag} Variable adds the description to it. I have it written in startup as:

```
*create WealthTag "(Getting By)"

*if Wealth = 0
  *set WealthTag "(Poverty-Struck)"

*if Wealth < 99
  *set WealthTag "(Getting by)"
  
*if Wealth > 100
  *set WealthTag "(Well Off)"
  
*if Wealth > 750
  *set WealthTag "(Wealthy)"
  
*if Wealth > 2000
  *set WealthTag "(Ludicrously Wealthy)"
  

```

The variable on it’s own works fine, it’s just trying to display it in the correct place.

---

<div class="post-metadata">

**Author:** ![Master\_Rhokai](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/master_rhokai/32/43432_2.png) [@Master\_Rhokai](https://forum.choiceofgames.com/u/Master_Rhokai)\
**Post date:** [December 9, 2017, 8:56am UTC](https://forum.choiceofgames.com/t/help-stat-description-issue/33075/7 "2017-12-09T08:56:19Z")

</div>

> [@DUNGEON\_MASTER](#):
>
> text “Unknown” Name
> 
> text “Unknown” Gender
> 
> text Intelligence
> 
> text Finesse
> 
> text Contempt
> 
> text Renown

```choicescript
Your Stats
    
  
*stat_chart
  percent Leadership
  percent Health
  opposed_pair Sane
    Mad
  opposed_pair Strength
    Weakness
  opposed_pair Bravery
    Cowardess
  
  text "Unknown" Name
  text "Unknown" Gender
  text Intelligence
  text Finesse
  text Contempt
  text Renown
  text "Who?" Known as

Wealth : ${Wealth} ${WealthTag}

```

This fixed it. Thankyou for the help!

---

<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:** [December 9, 2017, 8:59am UTC](https://forum.choiceofgames.com/t/help-stat-description-issue/33075/8 "2017-12-09T08:59:28Z")

</div>

Maybe this will help you figure out the problem.

I put this code in a startup file and got what you see in the screenshot.

```
*create wealthtag "(Getting By)"
*create wealth 3

Wealth: ${wealthtag} ${wealth}

```

So I’m guessing that you have some code that automatically puts a colon and a number after your wealthtag.

 ![tag](https://global.discourse-cdn.com/choiceofgames/original/3X/d/6/d6594ca4efebd51ccc1acac00bfb4c60a94ce070.jpg)
