I’m having trouble with everything in the Stat Screen. I’m frustrated because I have been trying to solve all the problems by myself, but this is something I can’t understand.
The error I’m getting is the following:
I’m trying to create a variable that allows the player to see the stats of a different way. I mean, the player does not only have the option to see his or her strenght as a number, but also it has a description attached to that number. I will show you guys the code:
*if astucia = 0
*set astucia1 "¿Astucia? ¿Eso se come?"
*goto chart
*elseif astucia = 1
*set astucia1 "Tan astuto como un bebé"
*goto chart
*elseif astucia >= 5
*set astucia1 "No se te escapa una mentira"
*goto chart
*elseif astucia >= 8
*set astucia1 "Habría que darte un premio"
*goto chart
*elseif astucia >= 10
*set astucia1 "Eres capaz de venderle hielo a un esquimal"
*goto chart
*if empatia = 0
*set empatia1 "Podrías ser un psicópata. Quién sabe"
*goto chart
*elseif empatia = 1
*set empatia1 "He visto piedras más empáticas que tú"
*goto chart
*elseif empatia >= 5
*set empatia1 "Empiezas a entender la mente humana"
*goto chart
*elseif empatia >= 8
*set empatia1 "Habría que darte un premio"
*goto chart
*elseif empatia >= 10
*set empatia1 "A veces da la impresión de que lees la mente"
*goto chart
*label chart
*stat_chart
text astucia [b]Astucia[/b]
Actualmente tu nivel de astucia es... [b]${astucia1}[/b]
*stat_chart
text empatia [b]Empatía[/b]
Actualmente tu nivel de empatía es... [b]${empatia1}[/b]
(The variables are in spanish, but that should not be a problem when it comes to understand the basic code I showed here. At least that’s what I hope…)
Well, as you can see, I just copied the same code I used in “astucia” and I reused it in “empatia”. I created the variables needed in the startup and it just work fine for “astucia” but when the “empatia” is displayed on the screen it just does not work.
Astucia: 0
Actualmente tu nivel de astucia es... ¿Astucia? ¿Eso se come?
Empatía: 0
Actualmente tu nivel de empatía es... Nada
The description nearby the number stay the same as default. So… thats my problem Probably a really stupid one, I know. Thanks before hand.