Apologies if this has already been addressed elsewhere! I couldn’t seem to find anything myself.
So, according to the ChoiceScriptDev wiki, after placing a variable in choicescript_stats.txt, anything following that variable will “becomes the new wording for the chart”. To use their example:
*stat_chart
text name
percent intelligence Cleverness
percent wisdom
will have the “intelligence” stat displayed as “Cleverness” in the stat screen.
It seems like a handy trick: variables can be as short as you like, increasing the speed at which you can type up a scene. However, when I tried to do it for my game:
*stat_chart
text Name
opposed_pair exhibit Exhibitionism
Subtlety
opposed_pair faction Cebos
Gloria
text Renown
an error message popped up. Specifically: “line 8: Non-existent variable ‘faction cebos’”.
From what I understand, this shouldn’t happen. In fact, quite the opposite: “faction” should be the only thing counted as part of the variable.
In trying to identify the issue, I copy/pasted the example above (and made sure to update mygame.js, as well as adjust the indentation) into choicescripts_stats.txt, and I got yet another error: “line 5: Non-existent variable ‘intelligence’”
I’m really not sure what the problem is. Any help toward this end would be appreciated!