"Couldn't extract another token" error

I’m trying to make romance options’ names vary based on player sexuality. My startup code is fine (if lengthy), but when I try to show the relationships chart in the stats page, it comes back with “choicescript_stats line 19: Invalid expression, couldn’t extract another token: ${RO_1}”

Here’s my code for the stats:

*label statsdisplay
*if (customization)
You are ${name} ${surname}, a ${height}, ${body_type} ${gender} attracted to ${sexuality}. You have ${hair_length}, ${hair_texture}, ${hair_color} hair, ${eye_color} eyes, and ${skin_color} skin.
*if not (customization)
You are a mystery.
*choice
#Relationships
*stat_chart
text Pack
percent Sol
percent Whit
percent Chelsea
percent Fletcher
*stat_chart
text Romance
percent ${RO_1}
percent ${RO_2}
percent ${RO_3}
percent ${RO_4}
*goto statsdisplay

If there’s another way for me to display set names for ROs, I’m all ears. I looked up what a token error means and the wiki says I used a character that doesn’t exist in the English language, so is it the brackets/dollar sign that’s the issue?

Edit: also I can’t get the indentation right in this browser for some reason, but the indentation is (I’m fairly certain) correct.

Figured it out lol. One day I’ll learn to just fiddle with stuff for a couple hours before posting on forums.

And in case anyone had the same question and was wondering, I made two separate variables; one for the percent stat of approval for each RO, and one for their names (which depend on MC sexuality.)

Initially my startup had a [create RO_1] (through RO_4) and separate lines for their pronouns. I kept all those to be the approval stats, and added a [create RO1] (through RO4) which acts as their names. Basically I just thought “underscore for score, no underscore for name.” Then, when the player chooses a sexuality, I added a [set RO1 “Tessa”] [set RO2 “Izzy”] [set RO3 “Charlotte”] and [set RO4 “Jasmine”] and so on for their masculine and gender neutral counterparts.

So my stats page looks like this now:

*label statsdisplay

*if (customization)
	You are ${name} ${surname}, a ${height}, ${body_type} ${gender} attracted to ${sexuality}. You have ${hair_length}, ${hair_texture}, ${hair_color} hair, ${eye_color} eyes, and ${skin_color} skin.

*if not (customization)
	You are a mystery.

*choice
	#Relationships
		*stat_chart
			text Pack
			percent Sol
			percent Whit
			percent Chelsea
			percent Fletcher
		*if (romance)
			*stat_chart
				percent RO_1 ${RO1}
				percent RO_2 ${RO2}
				percent RO_3 ${RO3}
				percent RO_4 ${RO4}
		*if not (romance)
				You haven't met anyone yet.
		*goto statsdisplay

And it works :smiling_face_with_three_hearts:

This topic was automatically closed 24 hours after the last reply. If you want to reopen your WiP, contact the moderators.