I'm having some trouble with coding for multiple stat screens

Hey so I’m incredibly new to using Choicescript and I’m having trouble with coding for multiple stat screens. I have tried looking around for answers and none have really helped me with figuring this out. If anyone could help me out a bit I would be incredibly thankful!

The error I’m getting is “choicescript_stats line 4: invalid indent, expected at least one row”

My code looks like this:

*stat_chart
*label main
 text Name
 text Age
 text Personality
 opposed_pair honor
   cunning
*choice
   #Relationships
       *goto rel
   #Skills
       *goto skill
*label rel
[Relationship stats here]
*choice
   #Personalality
       *goto main
   #Skill Explanations
       *goto skill
*label skill
[b]Skills[/b]
 percent Intelligence


*choice
   #Main Chatacter Sheet
       *goto main
   #Relationships
       *goto rel

Hi there, you have your stat_chart in the wrong place. :slight_smile: You have a stat_chart every time you show stats, so it would be like this:

*label main
*stat_chart
    text Name
    text Age
    text Personality
    opposed_pair honor
       cunning
*choice
   #Relationships
       *goto rel
   #Skills
       *goto skill
*label rel
*stat_chart
[Relationship stats here]

Every time you show your stats in their different labels, put the *stat_chart before the stats but after the label!

2 Likes

Perfect that was the problem! Thank you so much!! :slight_smile:

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.