Stat chart Opposed Pair help


#1

Okay so I don’t quite understand what I did wrong.
*title See The Viel
*author candy love
*comment your code goes here
*scene_list
startup
1
*create name “Unknown”
*create cash 20
*create intelligence 50
*create ignorance 50
*create sanity 50
*create madness 50

That is the startup.txt file.

*stat_chart
text Name
opposed_pair
Intelligence
Ignorance
opposed_pair
Sanity
Madness

That is the choicescript_stats.txt File

line 3 of choicescript_stats: Non-existent variable ‘intelligence’

Does anyone see the problem that I have apparently missed?


#2

Try this in your choicescript_stats instead and see how it works out.

*stat_chart
    text Name
    opposed_pair intelligence
        Intelligence
        Ignorance
    opposed_pair sanity
        Sanity
        Madness

#3

Yeye! Worked like a charm, thank you~!


#4

I moved this into the ‘ChoiceScript Help’ category for you and marked @seabean’s solution so others would know the issue has been solved. Good luck with your story. (:


#5

I feel I should point out that that’s not the only problem: when using opposed pairs, you only want one of them to be a stat (in this case, intelligence and sanity), which you decrease rather than increasing the (non-existent) opposed stat (ignorance and madness).