That’s what I remembered but I was just double checking since I couldn’t remember, so there essentially isn’t a variable just named hairc? So I could just
Will create another variable called hairc_count with a value of 9, if that’s what you mean? Otherwise I’m really struggling to understand what you’re trying to do with the extra variables.
The array is just… the array, n_hairc is the numerical value you set the hair to and t_hairc is what I want to show up
Like having to type out ${hairc[n_hairc]} is a bit of a mouthful to do every time you want to include a variable, so t_hairc is supposed to be a shorthand for that.
so t_hairc is supposed to be set to “chestnut shells” in the case where n_hairc is equal to 3
Won’t create a variable “hairc”, so you’re welcome to use it. I wouldn’t recommend it though, try to be as expressive and unique with your variable names as possible. This is especially important in ChoiceScript as there’s no type safety, so it’s really easy to accidentally assign the wrong values to the wrong variables.
Otherwise I think what you’re going for is fine.
You don’t need brackets here: *create t_hairc (hairc[n_hairc])
I just got in the habit of using brackets because my software constantly screams at me that it’s “wrong” if I don’t and I prefer not to see the red flags.