# The stats tab doesn't show the correct data

**URL:** <https://forum.choiceofgames.com/t/the-stats-tab-doesnt-show-the-correct-data/36528>\
**Category:** ChoiceScript Help\
**Created:** [March 17, 2018, 1:13am UTC](https://forum.choiceofgames.com/t/the-stats-tab-doesnt-show-the-correct-data/36528 "2018-03-17T01:13:11Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![TraneMrs](https://avatars.discourse-cdn.com/v4/letter/t/e47774/32.png) [@TraneMrs](https://forum.choiceofgames.com/u/TraneMrs)\
**Post date:** [March 17, 2018, 1:13am UTC](https://forum.choiceofgames.com/t/the-stats-tab-doesnt-show-the-correct-data/36528/1 "2018-03-17T01:13:11Z")

</div>

I can’t make the stats increase. I’ve tried all. From what I’m reading the code is right but for some reason it just doesn’t work

I created style, strength and resistance and put them on 50 (On style I just put " ") on startup.txt but when I try to change them. It just doesn’t work.  
This is my code.

```
*choice
  #PowerHouse 
    *set strenghth +5
    *set style "PowerHouse"
    *goto PowerHouse

  #Brawler
    *set resistance +5
    *set style "PowerHouse"
    *goto Brawler

```

It doesn’t matter what I do they keep on 50 (And style doesn’t show anything)

I also created the Brawler and Powerhouse labels and they work perfectly. The only problem is that the stats just doesn’t change

## PS: I also made a “name” and “lastname” variable and they work fine PS2: Changing variables before the \*choice works perfectly

EDIT: The stats are actually increased but they doesn’t show correctly on the stats tab

---

<div class="post-metadata">

**Author:** ![EclecticEccentric](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/eclecticeccentric/32/112816_2.png) [@EclecticEccentric](https://forum.choiceofgames.com/u/EclecticEccentric)\
**Post date:** [March 17, 2018, 1:18am UTC](https://forum.choiceofgames.com/t/the-stats-tab-doesnt-show-the-correct-data/36528/2 "2018-03-17T01:18:18Z")

</div>

What error does it show?

Also, your strength variable is misspelled in the code. Does that have anything to do with it?

---

<div class="post-metadata">

**Author:** ![Gower](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/gower/32/21972_2.png) [@Gower](https://forum.choiceofgames.com/u/Gower)\
**Post date:** [March 17, 2018, 1:20am UTC](https://forum.choiceofgames.com/t/the-stats-tab-doesnt-show-the-correct-data/36528/3 "2018-03-17T01:20:03Z")

</div>

You’ll want to have, in your startup file,:

\*create strength 0 (or whatever number you want to start with.)  
\*create resistance 0  
\*create style “” (because that will be a word, rather than a number)

Do you have that stuff?

---

<div class="post-metadata">

**Author:** ![TraneMrs](https://avatars.discourse-cdn.com/v4/letter/t/e47774/32.png) [@TraneMrs](https://forum.choiceofgames.com/u/TraneMrs)\
**Post date:** [March 17, 2018, 1:21am UTC](https://forum.choiceofgames.com/t/the-stats-tab-doesnt-show-the-correct-data/36528/4 "2018-03-17T01:21:47Z")

</div>

It doesn’t have anything to do because the original code is on spanish.  
It doesn’t show any error. It just doesn’t increase at all

---

<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:** [March 17, 2018, 1:52am UTC](https://forum.choiceofgames.com/t/the-stats-tab-doesnt-show-the-correct-data/36528/5 "2018-03-17T01:52:36Z")

</div>

Could you check if it increases if you use %+10 instead? That should approximately equal 5 here.

---

<div class="post-metadata">

**Author:** ![TraneMrs](https://avatars.discourse-cdn.com/v4/letter/t/e47774/32.png) [@TraneMrs](https://forum.choiceofgames.com/u/TraneMrs)\
**Post date:** [March 17, 2018, 2:35am UTC](https://forum.choiceofgames.com/t/the-stats-tab-doesnt-show-the-correct-data/36528/6 "2018-03-17T02:35:34Z")

</div>

i made  
\*create strength 50

and later i made  
\*label Brawler

I don’t think it have anything to do since I tried using  
\*finish instead of \*goto Powerhouse and it didn’t work either

---

<div class="post-metadata">

**Author:** ![TraneMrs](https://avatars.discourse-cdn.com/v4/letter/t/e47774/32.png) [@TraneMrs](https://forum.choiceofgames.com/u/TraneMrs)\
**Post date:** [March 17, 2018, 2:35am UTC](https://forum.choiceofgames.com/t/the-stats-tab-doesnt-show-the-correct-data/36528/7 "2018-03-17T02:35:38Z")

</div>

I created a lof of variables and all of them works but when I put the \*choice they just don’t update anymore

Here’s the original code

```
*create nombre ""
*create apellido ""
*create apodo ""
*create agilidad 50
*create fuerza 50
*create resistencia 50
*create tecnica 50
*create micro 50
*create face 50
*create kayfabe 50
*create ranking 300
*create marca "FAL"
*create origen ""
*create estilo ""

```

I made a input text to modify “nombre” “apellido” “apodo” and “origen” and all of them works

I used this to change them

\*label Nombre

\*input\_text nombre

The problem is after I put the \*choice nothing is updated after that.

This is the full code that I’m using on \*choice

```
*choice

  #PowerHouse (+Fuerza, ++Resistencia, -Agilidad)
    *set fuerza +5
    *goto PowerHouse

  #Brawler (++Fuerza, +Resistencia, -Tecnica)
    *set resistencia +5
    *goto Brawler

```

I think that I’m doing it fine but it just doesn’t work

---

<div class="post-metadata">

**Author:** ![TraneMrs](https://avatars.discourse-cdn.com/v4/letter/t/e47774/32.png) [@TraneMrs](https://forum.choiceofgames.com/u/TraneMrs)\
**Post date:** [March 17, 2018, 2:35am UTC](https://forum.choiceofgames.com/t/the-stats-tab-doesnt-show-the-correct-data/36528/8 "2018-03-17T02:35:40Z")

</div>

It didn’t do anything

---

<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:** [March 17, 2018, 2:42am UTC](https://forum.choiceofgames.com/t/the-stats-tab-doesnt-show-the-correct-data/36528/9 "2018-03-17T02:42:51Z")

</div>

Just to make sure: the choicebody itself works fine?  
This might be a ridiculous idea but:  
Try increasing the indentations by one or two (and dont use tab)

```
*choice
   #Powerhouse
      *set fuerza +5
      *goto powerhouse
   #Brawler
      *set resitencia +5
      *goto brawler

```

---

<div class="post-metadata">

**Author:** ![TraneMrs](https://avatars.discourse-cdn.com/v4/letter/t/e47774/32.png) [@TraneMrs](https://forum.choiceofgames.com/u/TraneMrs)\
**Post date:** [March 17, 2018, 3:22am UTC](https://forum.choiceofgames.com/t/the-stats-tab-doesnt-show-the-correct-data/36528/10 "2018-03-17T03:22:51Z")

</div>

Aaaaaand It didn’t work. I just don’t know what is happening here :’(

---

<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:** [March 17, 2018, 3:27am UTC](https://forum.choiceofgames.com/t/the-stats-tab-doesnt-show-the-correct-data/36528/11 "2018-03-17T03:27:17Z")

</div>

Mhnnn

1. If you are testing on browser, did you clear the cache?
2. Are you checking on the stats page? Could we have the code you have there?

I know this might sound silly, but its prolly something absurdly simply.  
(Also try making the labels all lower case?)

---

<div class="post-metadata">

**Author:** ![TraneMrs](https://avatars.discourse-cdn.com/v4/letter/t/e47774/32.png) [@TraneMrs](https://forum.choiceofgames.com/u/TraneMrs)\
**Post date:** [March 17, 2018, 3:36am UTC](https://forum.choiceofgames.com/t/the-stats-tab-doesnt-show-the-correct-data/36528/12 "2018-03-17T03:36:15Z")

</div>

I’m checking on the stats page. Every other variable is okay but this doesn’t change.  
I cleared cache a couple times and even changed browser

This is what I have on choicescripts\_stats

!{Nombre} !{Apellido}  
\*stat\_chart  
text Apodo  
text Marca  
opposed\_pair Face  
Heel  
opposed\_pair Kayfabe  
Realidad  
text Agilidad  
text Fuerza  
text Resistencia  
text Estilo  
text Origen

---

<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:** [March 17, 2018, 3:51am UTC](https://forum.choiceofgames.com/t/the-stats-tab-doesnt-show-the-correct-data/36528/13 "2018-03-17T03:51:10Z")

</div>

Try writing them all lower case? As you have them in the create line?

---

<div class="post-metadata">

**Author:** ![TraneMrs](https://avatars.discourse-cdn.com/v4/letter/t/e47774/32.png) [@TraneMrs](https://forum.choiceofgames.com/u/TraneMrs)\
**Post date:** [March 17, 2018, 3:58am UTC](https://forum.choiceofgames.com/t/the-stats-tab-doesnt-show-the-correct-data/36528/14 "2018-03-17T03:58:42Z")

</div>

Nothing happened 😕  
I tried to change the \*choice to \*fake\_choice since I saw that it allows \*set too

---

<div class="post-metadata">

**Author:** ![Szaal](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/szaal/32/112202_2.png) [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Post date:** [March 17, 2018, 4:36am UTC](https://forum.choiceofgames.com/t/the-stats-tab-doesnt-show-the-correct-data/36528/15 "2018-03-17T04:36:20Z")

</div>

Have you tried refreshing the browser page?

---

<div class="post-metadata">

**Author:** ![TraneMrs](https://avatars.discourse-cdn.com/v4/letter/t/e47774/32.png) [@TraneMrs](https://forum.choiceofgames.com/u/TraneMrs)\
**Post date:** [March 17, 2018, 11:49am UTC](https://forum.choiceofgames.com/t/the-stats-tab-doesnt-show-the-correct-data/36528/16 "2018-03-17T11:49:05Z")

</div>

I even tried on another browser

---

<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:** [March 17, 2018, 1:39pm UTC](https://forum.choiceofgames.com/t/the-stats-tab-doesnt-show-the-correct-data/36528/17 "2018-03-17T13:39:24Z")

</div>

Okay, you got the latest version of CS, correct?

Let’s try something ridiculous to narrow things down:

```
*choice
   #Powerhouse
      *set fuerza +5
      *goto powerhouse
   #Brawler
      *set resistencia +5
      *goto brawler

*label powerhouse
Fuerza : ${fuerza}
stuff
*goto next

```

all small letter in the variables  
just to check if the error is in the calculation somehow or in the stat file

---

<div class="post-metadata">

**Author:** ![TraneMrs](https://avatars.discourse-cdn.com/v4/letter/t/e47774/32.png) [@TraneMrs](https://forum.choiceofgames.com/u/TraneMrs)\
**Post date:** [March 17, 2018, 9:51pm UTC](https://forum.choiceofgames.com/t/the-stats-tab-doesnt-show-the-correct-data/36528/18 "2018-03-17T21:51:30Z")

</div>

The stats are increased but they don’t update on the stat file

---

<div class="post-metadata">

**Author:** ![TraneMrs](https://avatars.discourse-cdn.com/v4/letter/t/e47774/32.png) [@TraneMrs](https://forum.choiceofgames.com/u/TraneMrs)\
**Post date:** [March 17, 2018, 10:13pm UTC](https://forum.choiceofgames.com/t/the-stats-tab-doesnt-show-the-correct-data/36528/19 "2018-03-17T22:13:20Z")

</div>

Updated with what I discovered thanks to @MeltingPenguins  
The stats are actually increased but they don’t update on the stats tab

This is what I have right now on the choicescript\_stats.txt

```
*label Stats
*if (nombre != "")
 [i]Informacion Personal:[/i]
 *line_break
 [b]Nombre:[/b]
 ${nombre} ${apellido}
 *line_break
 [b]Marca:[/b]
 ${marca}
 *line_break
 [b]Estilo:[/b]
 ${estilo}
 *line_break
 [b]Lugar de nacimiento: [/b]
 ${origen}
 *line_break

[i]Habilidades:[/i]
*stat_chart
 percent Fuerza
 percent Resistencia
 percent Agilidad
 percent Tecnica
 percent Micro
 opposed_pair Face
        Heel 
 opposed_pair Kayfabe
        Realidad 
 percent Kayfabe
*line_break

```

---

<div class="post-metadata">

**Author:** ![GoldenSilver](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/goldensilver/32/110153_2.png) [@GoldenSilver](https://forum.choiceofgames.com/u/GoldenSilver)\
**Post date:** [March 17, 2018, 10:29pm UTC](https://forum.choiceofgames.com/t/the-stats-tab-doesnt-show-the-correct-data/36528/20 "2018-03-17T22:29:01Z")

</div>

In the game are you using the variables lowercase? If so try changing the ones in the percents to lowercase; I don’t know if that makes any difference but its worth trying it out.

[Next page](https://forum.choiceofgames.com/t/the-stats-tab-doesnt-show-the-correct-data/36528.md?page=2)
