Invalid expression, couldn't extract another token

I don’t know why I keep getting this error code.

This is what the code I’m having this constant issue with looks like.

The written code looks like this also…

*fake_choice
*if ((gender = “female”) or (gender = “non-binary”)) #Dark chocolate brown hair, high ponytail
Your hair, a dark chocolate brown, is styled in a high ponytail, sleek and smooth with the ends curled slightly.
*set hair “dark chocolate brown”
*set style “high ponytail”
*if ((gender = “female”) or (gender = “non-binary”)) # Fiery, coppery red hair, messy curls.
Your fiery, coppery red hair is styled in messy curls, wild and untamed, falling freely around your face.
*set hair “fiery, coppery red”
*set style “messy curls”
*if ((gender = “female”) or (gender = “non-binary”))#Golden blonde hair, chignon bun.
Your golden blonde hair is gathered into a low, soft chignon bun, perfectly neat and sophisticated.
*set hair “golden blonde”
*set style “chignon bun”
*if ((gender = “female”) or (gender = “non-binary”)) #Raven-black hair
Your raven-black hair is long, straight, and sleek, cascading down your back with a smooth shiny texture.
*set hair “raven-black”
*set style “straight and sleek”
*if ((gender = “female”) or (gender = “non-binary”)) #Natural black hair
Your black hair is styled in tight, defined curls creating a full, bouncy look. The curls frame your face, giving you a soft appearance.
*set hair “natural black hair”
*set style “afro”
*if ((gender = “female”) or (gender = “non-binary”)) #Strawberry-blonde hair
Your strawberry blonde hair is styled in loose curls, giving it a soft, adding volume and texture to the warm tones.
*set hair “strawberry blonde”
*set style “loose curls”
*if ((gender = “male”) or (gender = “non-binary”)) #Dark Chocolate Brown Hair, crew cut.
Your dark chocolate brown hair is styled in a short crew cut, neat and clean, emphasizing the sharp features of your face.
*set hair “dark chocolate brown”
*set style “crew cut”
*if ((gender = “male”) or (gender = “non-binary”)) #Fiery, Coppery Red Hair
Your fiery, coppery red hair is styled in a spiky and textured look, adding volume and enhancing the boldness of the red hue.
*set hair “fiery, coppery red”
*set style “spiky”
*if ((gender = “male”) or (gender = “non-binary”)) #Golden Blonde Hair
Your golden blonde hair is cropped into a buzz cut.
*set hair “golden blonde”
*set style “buzz cut”
*if ((gender = “male”) or (gender = “non-binary”)) #Raven-Black Hair
Your raven-black hair is slicked back.
*set hair “raven-black”
*set style “slicked back”
*if ((gender = “male”) or (gender = “non-binary”)) #Strawberry Blonde Hair
Your strawberry blonde hair is styled in medium-length waves.
*set hair “strawberry blonde”
*set style “medium-length waves”
*if ((gender = “male”) or (gender = “non-binary”)) #Natural Black hair, Fade.
Your black hair is styled into a clean, fade, with the sides trimmed close and the top left slightly longer.
*set hair “natural black hair”
*set style “fade”

And the spaces are correct. Two for # and three for words and set. All variables have been added to the startup page. Thanks in advance for the assistance.

1 Like

There’s a space missing in front of the # in the ‘Golden Blonde hair, cignon bun’ option.

Also an extra space after the # in the “Fiery, coppery red hair, messy curls” but that’s probably not the problem, it’s just inconsistent with the others.

What’s on the actual line the error measage points to?

I adjusted that, but the error is persisting

I also adjusted this too.
This is the code that is on line 370.
*set hair “dark chocolate brown”

It looks like the error is on line 376 from the message, could you post the code that’s on and around that line?

If you select “preformatted text” for the code when making your post it’ll also be easier to see the indents and figure out the problem.

1 Like
*fake_choice
 *if ((gender = "female") or (gender = "non-binary")) #Dark chocolate brown hair, high ponytail
  Your hair, a dark chocolate brown, is styled in a high ponytail, sleek and smooth with the ends curled slightly.
  *set hair "dark chocolate brown"  
  *set style "high ponytail"
 *if ((gender = "female") or (gender = "non-binary")) #Fiery, coppery red hair, messy curls.
  Your fiery, coppery red hair is styled in messy curls, wild and untamed, falling freely around your face.
  *set hair "fiery, coppery red"  
  *set style "messy curls"
 *if ((gender = "female") or (gender = "non-binary")) #Golden blonde hair, chignon bun.
  Your golden blonde hair is gathered into a low, soft chignon bun, perfectly neat and sophisticated.
  *set hair "golden blonde"  
  *set style "chignon bun"
 *if ((gender = "female") or (gender = "non-binary")) #Raven-black hair 
  Your raven-black hair is long, straight, and sleek, cascading down your back with a smooth shiny texture.
  *set hair "raven-black"  
  *set style "straight and sleek"
 *if ((gender = "female") or (gender = "non-binary")) #Natural black hair
  Your black hair is styled in tight, defined curls creating a full, bouncy look. The curls frame your face, giving you a soft appearance.
  *set hair "natural black hair"  
  *set style "afro"
 *if ((gender = "female") or (gender = "non-binary")) #Strawberry-blonde hair  
  Your strawberry blonde hair is styled in loose curls, giving it a soft, adding volume and texture to the warm tones.
  *set hair "strawberry blonde"  
  *set style "loose curls"
 *if ((gender = "male") or (gender = "non-binary")) #Dark Chocolate Brown Hair, crew cut.
  Your dark chocolate brown hair is styled in a short crew cut, neat and clean, emphasizing the sharp features of your face.
  *set hair "dark chocolate brown"  
  *set style "crew cut"
 *if ((gender = "male") or (gender = "non-binary")) #Fiery, Coppery Red Hair, spiky
  Your fiery, coppery red hair is styled in a spiky and textured look, adding volume and enhancing the boldness of the red hue.
  *set hair "fiery, coppery red"  
  *set style "spiky"
 *if ((gender = "male") or (gender = "non-binary")) #Golden Blonde Hair, buzz cut
  Your golden blonde hair is cropped into a buzz cut.
  *set hair "golden blonde"  
  *set style "buzz cut"
 *if ((gender = "male") or (gender = "non-binary")) #Raven-Black Hair, slicked back
  Your raven-black hair is slicked back.
  *set hair "raven-black"  
  *set style "slicked back"
 *if ((gender = "male") or (gender = "non-binary")) #Strawberry Blonde Hair, medium-length waves
  Your strawberry blonde hair is styled in medium-length waves.
  *set hair "strawberry blonde"  
  *set style "medium-length waves"
 *if ((gender = "male") or (gender = "non-binary")) #Natural Black hair, Fade.
  Your black hair is styled into a clean, fade, with the sides trimmed close and the top left slightly longer.
  *set hair "natural black hair"  
  *set style "fade"

That’s the code. Line 376 is the chignon bun.

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